public void Should_get_the_correct_value_from_index_if_not_null()
 {
     const string expected = "Name";
     HbmManyToOne manyToOne = new HbmManyToOne
         {
             index = expected
         };
     string result = manyToOne.GetUniqueIndex();
     result.ShouldNotBeNull();
     result.ShouldBeEqualTo(expected);
 }
 public void Should_get_the_correct_value_from_Items_given_null_index()
 {
     const string expected = "Name";
     HbmManyToOne manyToOne = new HbmManyToOne
         {
             Items = new object[]
                 {
                     new HbmColumn
                         {
                             index = expected
                         }
                 }
         };
     string result = manyToOne.GetUniqueIndex();
     result.ShouldNotBeNull();
     result.ShouldBeEqualTo(expected);
 }
 public void Should_get_null_given_null_index_and_Items_index()
 {
     HbmManyToOne manyToOne = new HbmManyToOne
         {
             Items = new object[] {new HbmColumn()}
         };
     string result = manyToOne.GetUniqueIndex();
     result.ShouldBeNull();
 }