public void loadPlayersWithValidGameNameTest() { string gamePath = setUpGameExample("unitTest"); Player[] players = rolePlayFileStorage.loadPlayers("unitTest"); Assert.AreEqual("Name1", players[0].name); Assert.AreEqual("Skill1Name", players[0].skills[0].name); Assert.AreEqual(1, players[0].skills[0].score); Assert.AreEqual("", players[0].image); Assert.AreEqual("Name2", players[1].name); Assert.AreEqual("Skill4Name", players[1].skills[3].name); Assert.AreEqual(-1, players[1].skills[3].score); Assert.AreEqual(gamePath + "\\actorW275xH400px.jpg", players[1].image); Assert.AreEqual("", players[2].image); Assert.AreEqual("Name4", players[3].name); Assert.AreEqual(0, players[3].skills.Count); }
public void loadPlayersWithFakeGameNameTest() { RolePlayFileStorage fs = new RolePlayFileStorage(); fs.loadPlayers("fake"); }