Exemple #1
0
        public void Test_FilePrinter_ExceptionWritelnWithoutOpenFile()
        {
            string fileName = "file/file.txt";

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

            p.Writeln("def");
        }
Exemple #2
0
        public void Test_FilePrinter_CorrectWritelnOnFile()
        {
            string fileName = "file/file.txt";

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

            p.OpenFile();
            p.Writeln("def");
        }