public void A_Line_Written_To_The_Log_Is_Appended_To_File_Log() { string file = "LogTest.txt"; string hello = "Hello, Log!"; var lw = new LogWriter(file); lw.Write(hello); StreamReader reader = new StreamReader(file); String read = reader.ReadLine(); reader.Close(); read.ShouldBe(hello); }
public void We_Can_Write_A_Line_To_A_File() { var lw = new LogWriter(); lw.Write("Hello, Log!"); true.ShouldBeTrue(); }