Пример #1
0
 public void PrintedWallMessageShouldHaveCorrectFormat()
 {
     Message message = new Message ("Message",
         "mcarmen",
         DateTime.Now.AddSeconds (-30));
     message.PrintInWall ();
     string expected = string.Format("mcarmen - Message (30 seconds ago){0}", Environment.NewLine);
     Assert.AreEqual (expected, _standardOut.ToString ());
 }