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); }
public void Should_have_isnull_true(Type type) { var dynamicObject = DynamicObject.CreateDefault(type); dynamicObject.IsNull.ShouldBeTrue(); }