Skip to content

Commit 23dd61b

Browse files
author
Jake Ginnivan
committed
Merge pull request #30 from kkozmic/reportingAttempt3
Reporting attempt 3
2 parents e7a9d38 + ab75360 commit 23dd61b

File tree

35 files changed

+372
-276
lines changed

35 files changed

+372
-276
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Passed: 'Header' for 'Fake data'
2-
--------------------------------
1+
'Header' for 'Fake data'
2+
------------------------
33

4-
With approved exceptions:
54
Approved Exception
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
collection,item,can add,can remove
2+
TestAssembly.Collections.Branch,TestAssembly.Collections.Leaf,False,False
3+
TestAssembly.Collections.Forest,TestAssembly.Collections.Tree,True,True
4+
TestAssembly.Collections.Tree,TestAssembly.Collections.Branch,True,False
5+
TestAssembly.Collections.Tree,TestAssembly.Collections.Leaf,False,False

TestStack.ConventionTests.Tests/CsvReportTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
using NUnit.Framework;
66
using TestAssembly.Collections;
77
using TestStack.ConventionTests.ConventionData;
8+
using TestStack.ConventionTests.Reporting;
89
using TestStack.ConventionTests.Tests.TestConventions;
910

1011
[UseReporter(typeof(DiffReporter))]
1112
public class CsvReportTests
1213
{
1314
[Test]
14-
[Explicit("This is work in progress so ignoring for now")]
1515
public void Can_run_convention_with_simple_reporter()
1616
{
1717
Convention.IsWithApprovedExeptions(new CollectionsRelationsConvention(), new Types("Entities")
1818
{
1919
TypesToVerify =
2020
typeof (Leaf).Assembly.GetExportedTypes()
2121
.Where(t => t.Namespace == typeof (Leaf).Namespace).ToArray()
22-
});
22+
}, new CsvReporter());
2323
}
2424
}
2525
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Failed: 'Project must not reference dlls from bin or obj directories' for 'TestStack.ConventionTests.Tests'
2-
-----------------------------------------------------------------------------------------------------------
1+
'Project must not reference dlls from bin or obj directories' for 'TestStack.ConventionTests.Tests'
2+
---------------------------------------------------------------------------------------------------
33

4-
bin\Debug\ApprovalTests.dll
4+
bin\Debug\ApprovalTests.dll
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Passed: 'Project must not reference dlls from bin or obj directories' for 'TestStack.ConventionTests.Tests'
2-
-----------------------------------------------------------------------------------------------------------
1+
'Project must not reference dlls from bin or obj directories' for 'TestStack.ConventionTests.Tests'
2+
---------------------------------------------------------------------------------------------------
33

4-
With approved exceptions:
5-
bin\Debug\ApprovalTests.dll
4+
bin\Debug\ApprovalTests.dll
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Failed: '.sql Files must be embedded resources' for 'TestStack.ConventionTests.Tests'
2-
-------------------------------------------------------------------------------------
1+
'.sql Files must be embedded resources' for 'TestStack.ConventionTests.Tests'
2+
-----------------------------------------------------------------------------
33

4-
Scripts\Script2.sql
4+
Scripts\Script2.sql
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Passed: '.sql Files must be embedded resources' for 'TestStack.ConventionTests.Tests'
2-
-------------------------------------------------------------------------------------
1+
'.sql Files must be embedded resources' for 'TestStack.ConventionTests.Tests'
2+
-----------------------------------------------------------------------------
33

4-
With approved exceptions:
5-
Scripts\Script2.sql
4+
Scripts\Script2.sql
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Failed: 'Types must have a default constructor' for 'nHibernate Entitites'
2-
--------------------------------------------------------------------------
1+
'Types must have a default constructor' for 'nHibernate Entitites'
2+
------------------------------------------------------------------
33

44
TestAssembly.ClassWithNoDefaultCtor
5-
TestAssembly.ClassWithPrivateDefaultCtor
5+
TestAssembly.ClassWithPrivateDefaultCtor
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
Passed: 'Types must have a default constructor' for 'nHibernate Entitites'
2-
--------------------------------------------------------------------------
1+
'Types must have a default constructor' for 'nHibernate Entitites'
2+
------------------------------------------------------------------
33

4-
With approved exceptions:
54
TestAssembly.ClassWithNoDefaultCtor
6-
TestAssembly.ClassWithPrivateDefaultCtor
5+
TestAssembly.ClassWithPrivateDefaultCtor
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Failed: 'Methods must be virtual' for 'nHibernate Entitites'
2-
------------------------------------------------------------
1+
'Methods must be virtual' for 'nHibernate Entitites'
2+
----------------------------------------------------
33

4-
TestAssembly.SampleDomainClass.TestNonVirtual
4+
TestAssembly.SampleDomainClass.TestNonVirtual

0 commit comments

Comments
 (0)