public void Test_FilePrinter_ExceptionWriteWithoutOpenFile() { string fileName = "file/file.txt"; LibPrinter.Printer p = new LibPrinter.Printer(fileName); p.Write("abc"); }
public void Test_FilePrinter_CorrectWriteOnFile() { string fileName = "file/file.txt"; LibPrinter.Printer p = new LibPrinter.Printer(fileName); p.OpenFile(); p.Write("abc"); }