public void Should_get_null_given_column_is_null() { HbmId id = new HbmId { column = null }; bool?result = id.CanBeNull(); result.ShouldBeNull(); }
public void Should_get_null_given_column_notnullSpecified_is_false() { HbmId id = new HbmId { column = new[] { new HbmColumn { notnullSpecified = false } } }; bool?result = id.CanBeNull(); result.ShouldBeNull(); }
public void Should_get__false__given_column_notnullSpecified_is_true_and_notnull_is_true() { HbmId id = new HbmId { column = new[] { new HbmColumn { notnullSpecified = true, notnull = true } } }; bool?result = id.CanBeNull(); result.ShouldNotBeNull(); result.Value.ShouldBeFalse(); }