public IEnumerator FilterGetItemsThatContainString() { var i = new Dummy_Inventory(9); i.AddItem(new Item("Test", ItemType.armor, 1), 1); i.AddItem(new Item("Test3", ItemType.collectable, 1), 1); i.AddItem(new Item("Bla2", ItemType.equipement, 1), 1); i.AddItem(new Item("Bla1", ItemType.equipement, 1), 1); var list = i.GetItemsThatContainInName("Bla"); Assert.AreEqual(2, list.Count); list = i.GetItemsThatContainInName("bla"); Assert.AreEqual(2, list.Count); yield return(null); }