Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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));
        }