public void HomeSecondFirst_HomeFirstSecond() { var origin = new List <CityPair>() { new CityPair() { First = "home", Second = "first" }, new CityPair() { First = "second", Second = "home" }, new CityPair() { First = "first", Second = "second" }, }; var rez = new List <CityPair>() { new CityPair() { First = "home", Second = "first" }, new CityPair() { First = "first", Second = "second" }, new CityPair() { First = "second", Second = "home" }, }; Assert.That(origin.OrderByCityPairs(), Is.DeepEqualTo(rez)); }
public void HomeHome_1Elem() { var origin = new List <CityPair>() { new CityPair() { First = "home", Second = "home" } }; var rez = new List <CityPair>() { new CityPair() { First = "home", Second = "home" } }; Assert.That(origin.OrderByCityPairs(), Is.DeepEqualTo(rez)); }