public void ShouldHaveValue() { var result = NullableValueTypes.GenerateOrderWithCompanyId(); Assert.IsTrue(result.CompanyId.HasValue, "Nullable type should have value."); }
public void ShouldNotHaveValue() { var result = NullableValueTypes.GenerateOrderWithoutCompanyId(); Assert.IsFalse(result.CompanyId.HasValue, "Nullable type should not have value."); }