public void ShouldBeWarning() { TextWriter output = new StringWriter(); var logger = new TeamCityMsBuildLogger("SomeSolution.sln", output, new FakeCommandLog(null, null)); logger.CommandOutput("BounceRunner.cs(103,32): warning CS0168: The variable 'e' is declared but never used"); Assert.That(output.ToString(), Is.EqualTo("##teamcity[message text='BounceRunner.cs(103,32): warning CS0168: The variable |'e|' is declared but never used' status='WARNING']\r\n")); }