Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

further integration test fixes for automapping

  • Loading branch information...
commit 1cfa0ad5de232b05af51a7bfa3e922ee5d0dfb68 1 parent 054676f
@mikeedwards83 authored
View
8 Tests/Unit Tests/Glass.Mapper.Tests/Configuration/AbstractTypeConfigurationFixture.cs
@@ -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>();
Please sign in to comment.
Something went wrong with that request. Please try again.