Exemple #1
0
        public void Mapper_should_procude_expected_default(Type type)
        {
            var dynamicObject   = DynamicObject.CreateDefault(type);
            var expectedDefault = CreateDefaultForType(type);

            var mapperResult = new DynamicObjectMapper().Map(dynamicObject);

            mapperResult.ShouldBe(expectedDefault);
        }
Exemple #2
0
        public void Should_have_isnull_true(Type type)
        {
            var dynamicObject = DynamicObject.CreateDefault(type);

            dynamicObject.IsNull.ShouldBeTrue();
        }