Exemple #1
0
            public void Should_get_null_given_column_is_null()
            {
                HbmId id = new HbmId
                {
                    column = null
                };
                bool?result = id.CanBeNull();

                result.ShouldBeNull();
            }
Exemple #2
0
            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();
            }
Exemple #3
0
            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();
            }