using NUnit.Framework;
namespace ThoughtWorks.CruiseControl.UnitTests.Xsl{
[TestFixture]
public class MsBuildStylesheetTest : StylesheetTestFixture
{
protected override string Stylesheet
{
get { return @"xsl\msbuild.xsl"; }
}
[Test]
public void ShouldRenderWarnings()
{
string xml = WrapInBuildResultsElement(@"<msbuild><warning file=""c:\temp\foo.txt"" line=""10"" column=""23"">Invalid behaviour.</warning></msbuild>");
string actualXml = LoadStylesheetAndTransformInput(xml);
CustomAssertion.AssertContains(@"c:\temp\foo.txt", actualXml);
CustomAssertion.AssertContains("(10,23)", actualXml);
CustomAssertion.AssertContains("Invalid behaviour.", actualXml);
}
}
}
|