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

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

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