Exemplo n.º 1
0
        public void InititalDashedWordPrintTest()
        {
            IWord initialWord = new ProxyWord("initialWord");
            string expectedInitialWordView = "-----------";

            Assert.AreEqual(expectedInitialWordView, initialWord.Print());
        }
Exemplo n.º 2
0
        public void PartlyRevealedWordPrintTest()
        {
            IWord partlyRevealedWord = new ProxyWord("newWord");
            partlyRevealedWord.RevealedCharacters[1] = true;
            partlyRevealedWord.RevealedCharacters[3] = true;

            string expectedInitialWordView = "-e-W---";

            Assert.AreEqual(expectedInitialWordView, partlyRevealedWord.Print());
        }
Exemplo n.º 3
0
        public void RevealedWordPrintTest()
        {
            IWord revealedWord = new ProxyWord("word");
            revealedWord.RevealedCharacters[0] = true;
            revealedWord.RevealedCharacters[1] = true;
            revealedWord.RevealedCharacters[2] = true;
            revealedWord.RevealedCharacters[3] = true;

            string expectedInitialWordView = "word";

            Assert.AreEqual(expectedInitialWordView, revealedWord.Print());
        }