public void Test_AddElement() { // Arrange int expected = 5; // Act GenericMember <string> list1 = new GenericMember <string>(); list1.AddItem("Chue"); list1.AddItem("Evee"); list1.AddItem("Jessienee"); list1.AddItem("Chloe"); list1.AddItem("Yosmine"); int actual = list1.Count(); //Assert Assert.AreEqual(expected, actual); }
public void Test_CheckCount() { // Arrange Boolean expected = false; // Act GenericMember <string> list1 = new GenericMember <string>(); list1.AddItem("1"); list1.AddItem("2"); list1.AddItem("3"); list1.AddItem("4"); list1.AddItem("5"); Boolean actual = true; if (list1.Count() > 0) { actual = false; } //Assert Assert.AreEqual(expected, actual); }