Write() private method

private Write ( string content ) : void
content string
return void
Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void We_Can_Write_A_Line_To_A_File()
 {
     var lw = new LogWriter();
     lw.Write("Hello, Log!");
     true.ShouldBeTrue();
 }