public IEnumerator SortByNameDescending() { var i = new Dummy_Inventory(9); var itemDataA = new Item("TestA", 1); var itemDataB = new Item("TestB", 1); i.AddItem(itemDataA, 1); i.AddItem(itemDataB, 1); i.SortByNameDescending(); Assert.AreEqual(itemDataB, i.GetItem(0)); Assert.AreEqual(itemDataA, i.GetItem(1)); yield return(null); }