예제 #1
0
        public void Test_FilePrinter_ExceptionWriteWithoutOpenFile()
        {
            string fileName = "file/file.txt";

            LibPrinter.Printer p = new LibPrinter.Printer(fileName);

            p.Write("abc");
        }
예제 #2
0
        public void Test_FilePrinter_CorrectWriteOnFile()
        {
            string fileName = "file/file.txt";

            LibPrinter.Printer p = new LibPrinter.Printer(fileName);

            p.OpenFile();
            p.Write("abc");
        }