public void PingPong_Replace3ByPing_ListOfNumbers() { PingPongGame testPingPong = new PingPongGame(4); List <object> expected = new List <object>() { 1, 2, "ping", 4 }; List <object> actual = testPingPong.PingPong(); CollectionAssert.AreEqual(expected, actual); }
public void PingPong_Replace15ByPingPong_ListOfObject() { //Arrange PingPongGame testPingPong = new PingPongGame(15); List <object> expected = new List <object>() { 1, 2, "ping", 4, "pong", "ping", 7, 8, "ping", "pong", 11, "ping", 13, 14, "pingpong" }; //Act List <object> actual = testPingPong.PingPong(); //Assert CollectionAssert.AreEqual(expected, actual); }
public void PingPong_CountTo2_ListOfNumbers() { //Arrange PingPongGame testPingPong = new PingPongGame(2); List <object> expected = new List <object>() { 1, 2 }; //Act List <object> actual = testPingPong.PingPong(); //Assert CollectionAssert.AreEqual(expected, actual); }
public void PingPong_NumberDisvibleByThree_True() { PingPongGame testPingPongGame = new PingPongGame(); Assert.AreEqual(true, testPingPongGame.PingPong(3)); }