예제 #1
0
            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();
            }
예제 #2
0
            public void Should_get__true__given_notnullSpecified_is_true_and_notnull_is_false()
            {
                HbmProperty property = new HbmProperty
                {
                    notnullSpecified = true,
                    notnull          = false
                };
                bool?result = property.CanBeNull();

                result.ShouldNotBeNull();
                result.Value.ShouldBeTrue();
            }
예제 #3
0
            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();
            }