Permalink
Browse files

further integration test fixes for automapping

  • Loading branch information...
1 parent 054676f commit 1cfa0ad5de232b05af51a7bfa3e922ee5d0dfb68 @mikeedwards83 committed Apr 1, 2013
@@ -46,7 +46,7 @@ public void AutoMapProperties_ClassNoPropertiesStaticallyMapped_AutoMapsAllPrope
//Assign
_configuration.Type = typeof(StubClass);
Assert.AreEqual(0, _configuration.Properties.Count());
-
+ _configuration.AutoMap = true;
//Act
_configuration.PerformAutoMap();
@@ -59,6 +59,8 @@ public void AutoMapProperties_ClassSomeStaticallyMapped_AutoMapsAllProperties()
{
//Assign
_configuration.Type = typeof(StubClass);
+ _configuration.AutoMap = true;
+
Assert.AreEqual(0, _configuration.Properties.Count());
AbstractPropertyConfiguration property1 = Substitute.For<AbstractPropertyConfiguration>();
@@ -81,6 +83,8 @@ public void AutoMapProperties_InterfaceNoPropertiesStaticallyMapped_AutoMapsAllP
{
//Assign
_configuration.Type = typeof(IStubInterface);
+ _configuration.AutoMap = true;
+
Assert.AreEqual(0, _configuration.Properties.Count());
//Act
@@ -95,6 +99,8 @@ public void AutoMapProperties_InterfaceSomeStaticallyMapped_AutoMapsAllPropertie
{
//Assign
_configuration.Type = typeof(IStubInterface);
+ _configuration.AutoMap = true;
+
Assert.AreEqual(0, _configuration.Properties.Count());
AbstractPropertyConfiguration property1 = Substitute.For<AbstractPropertyConfiguration>();

0 comments on commit 1cfa0ad

Please sign in to comment.