コード例 #1
0
            public void Should_get_null_given_null_index_and_column_index()
            {
                HbmId id = new HbmId
                {
                    column = new[] { new HbmColumn() }
                };
                string result = id.GetUniqueIndex();

                result.ShouldBeNull();
            }
コード例 #2
0
            public void Should_get_the_correct_value_from_column()
            {
                const string expected = "Name";
                HbmId        id       = new HbmId
                {
                    column = new[]
                    {
                        new HbmColumn
                        {
                            index = expected
                        }
                    }
                };
                string result = id.GetUniqueIndex();

                result.ShouldNotBeNull();
                result.ShouldBeEqualTo(expected);
            }