Esempio n. 1
0
        public void TestIncorrectPlayerInformationToThrowException()
        {
            var formatter = new AllCapsFormatter();
            var result = formatter.Format(null);
            var expect = "PLAYER ---> 1 MISTAKE(S)!";

            Assert.IsTrue(expect == result);
        }
Esempio n. 2
0
        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);
        }