예제 #1
0
        public void NumberedTextWriter_EmptyString_ExpectPass()
        {
            //arrange
            TestWriter         test = new TestWriter();
            NumberedTextWriter tw   = new NumberedTextWriter(test);

            //act
            tw.WriteLine("");
            //assert
            Assert.AreEqual("1: \n", test.Line);
        }
예제 #2
0
        public void NumberedTextWriter_OneLine_ExpectPass()
        {
            //arrange
            TestWriter         test = new TestWriter();
            NumberedTextWriter tw   = new NumberedTextWriter(test);

            //act
            tw.WriteLine("Hello");
            //assert
            Assert.AreEqual("1: Hello\n", test.Line);
        }