public void TestIncorrectPlayerInformationToThrowException() { var formatter = new AllCapsFormatter(); var result = formatter.Format(null); var expect = "PLAYER ---> 1 MISTAKE(S)!"; Assert.IsTrue(expect == result); }
public void TestFormat() { var player = new PersonalScore("pLaYer", 1); var formatter = new AllCapsFormatter(); var result = formatter.Format(player); var expect = "PLAYER ---> 1 MISTAKE(S)!"; Assert.IsTrue(expect == result); }