public void Can_create_Dictionary_default_value() { var obj = (Dictionary <string, ClassWithEnum>)AutoMappingUtils.CreateDefaultValue(typeof(Dictionary <string, ClassWithEnum>), new Dictionary <Type, int>()); Assert.That(obj, Is.Not.Null); }
public void PopulateObject_UsesDefinedEnum_OnNestedTypes() { var requestObj = (Dictionary <string, TestClass2>)AutoMappingUtils.CreateDefaultValue(typeof(Dictionary <string, TestClass2>), new Dictionary <Type, int>()); Assert.True(Enum.IsDefined(typeof(TestClassType), requestObj.First().Value.Type)); }