Example #1
0
        public void CharacterCollision()
        {
            WriterActions writer = new WriterActions();

            writer.ProcessInput("An       a day keeps the doctor away");
            writer.Edit("artichoke");

            Assert.AreEqual("An artich@k@ay keeps the doctor away", string.Join(null, writer.paper.ToArray()));
        }
Example #2
0
        public void EditWord()
        {
            WriterActions writer = new WriterActions();

            writer.ProcessInput("An       a day keeps the doctor away");
            writer.Edit("onion");

            Assert.AreEqual("An onion a day keeps the doctor away", string.Join(null, writer.paper.ToArray()));
        }