public void Provera_PrvaPorukaUspesna_Ispravno() { Informer i = new Informer(); string teststring = string.Format("-----------------------------------------------------{0}" + "\tPODACI USPESNO UPISANI U BAZU PODATAKA{0}" + "-----------------------------------------------------\r\n", Environment.NewLine); var output = new StringWriter(); Console.SetOut(output); i.PrvaPorukaUspesna(); Assert.That(output.ToString(), Is.EqualTo(teststring)); }