예제 #1
0
        public void ShouldHaveValue()
        {
            var result = NullableValueTypes.GenerateOrderWithCompanyId();

            Assert.IsTrue(result.CompanyId.HasValue, "Nullable type should have value.");
        }
예제 #2
0
        public void ShouldNotHaveValue()
        {
            var result = NullableValueTypes.GenerateOrderWithoutCompanyId();

            Assert.IsFalse(result.CompanyId.HasValue, "Nullable type should not have value.");
        }