public void Save_GetAllMons_Test() { Mon.DeleteAll(); //Arrange Mon newMon = new Mon("Pikachu", 1, 2, 3, 4, 5, 6, 10); Mon newMon1 = new Mon("Raichu", 2, 4, 6, 8, 10, 12, 20); newMon.Save(); newMon1.Save(); //Act List <Mon> expectedResult = new List <Mon> { newMon, newMon1 }; List <Mon> result = Mon.GetAllMons(); //Assert Console.WriteLine(expectedResult.Count); Console.WriteLine(result.Count); CollectionAssert.AreEqual(expectedResult, result); }
public void Dispose() { Mon.DeleteAll(); }