Write() 개인적인 메소드

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