public void Should_get_null_given_notnullSpecified_is_false_and_Items_is_null() { HbmProperty property = new HbmProperty { notnullSpecified = false, Items = null }; bool? result = property.CanBeNull(); result.ShouldBeNull(); }
public void Should_get__false__given_notnullSpecified_and_notnull_are_both_true() { HbmProperty property = new HbmProperty { notnullSpecified = true, notnull = true }; bool? result = property.CanBeNull(); result.ShouldNotBeNull(); result.Value.ShouldBeFalse(); }
public void Should_get__false__given_notnullSpecified_is_false_and_Items_notnullSpecified_is_true_and_Items_notnull_is_true() { HbmProperty property = new HbmProperty { notnullSpecified = false, Items = new object[] { new HbmColumn { notnullSpecified = true, notnull = true } } }; bool? result = property.CanBeNull(); result.ShouldNotBeNull(); result.Value.ShouldBeFalse(); }