public void Test_Upload_listitems3() { CreateItems c = new CreateItems(); ListItems listitems = new ListItems(); List <Item> wantedList = new List <Item>(); Item item3 = new Item("Collier en argent", 2, 120, "Collier en argent emettant une étrange lueur", "bijou"); item3.AddRequired("attaque magique", 10); wantedList.Add(item3); Assert.AreEqual(item3.GetName, listitems.Items[2].GetName); Assert.AreEqual(item3.GetDescription, listitems.Items[2].GetDescription); Assert.AreEqual(item3.GetWeight, listitems.Items[2].GetWeight); Assert.AreEqual(item3.GetValue, listitems.Items[2].GetValue); Assert.AreEqual(item3.GetStats, listitems.Items[2].GetStats); Assert.AreEqual(item3.GetRequired, listitems.Items[2].GetRequired); Assert.AreEqual(item3.Type, listitems.Items[2].Type); }
public void Test_Upload_listitems2() { CreateItems c = new CreateItems(); ListItems listitems = new ListItems(); List <Item> wantedList = new List <Item>(); Item item2 = new Item("Bandage", 1, 5, "Bandage rudimentaire permettant d'arreter un saignement", "consommable"); item2.AddStats("vie", 10); wantedList.Add(item2); Assert.AreEqual(item2.GetName, listitems.Items[1].GetName); Assert.AreEqual(item2.GetDescription, listitems.Items[1].GetDescription); Assert.AreEqual(item2.GetWeight, listitems.Items[1].GetWeight); Assert.AreEqual(item2.GetValue, listitems.Items[1].GetValue); Assert.AreEqual(item2.GetStats, listitems.Items[1].GetStats); Assert.AreEqual(item2.GetRequired, listitems.Items[1].GetRequired); Assert.AreEqual(item2.Type, listitems.Items[1].Type); }
public void Test_Upload_listitems() { CreateItems c = new CreateItems(); ListItems listitems = new ListItems(); List <Item> wantedList = new List <Item>(); Item item1 = new Item("Dague en bois", 5, 10, "Petite dague en bois, peu efficace en combat mais tres belle ouvrage", "arme"); item1.AddStats("attaque physique", 5); item1.AddStats("esquive", 2); wantedList.Add(item1); Assert.AreEqual(item1.GetName, listitems.Items[0].GetName); Assert.AreEqual(item1.GetDescription, listitems.Items[0].GetDescription); Assert.AreEqual(item1.GetWeight, listitems.Items[0].GetWeight); Assert.AreEqual(item1.GetValue, listitems.Items[0].GetValue); Assert.AreEqual(item1.GetStats, listitems.Items[0].GetStats); Assert.AreEqual(item1.GetRequired, listitems.Items[0].GetRequired); Assert.AreEqual(item1.Type, listitems.Items[0].Type); }