<ExpectedResults Script="path/to/script" > <Classes> <Include Name="SomeType" /> <Exclude Name="OtherType" /> </Classes> <Warnings> <Pattern> regex </Pattern> </Warnings> <Errors> <Pattern> regex </Pattern> </Errors> </ExpectedResults>
private ExpectedResults ReadExpectedResults(string expectedResultsFilePath) { if (string.IsNullOrEmpty(expectedResultsFilePath) || !File.Exists(expectedResultsFilePath)) { return(ExpectedResults.Parse(emptyResults, "")); } using (var fileStream = File.OpenRead(expectedResultsFilePath)) { var xml = XElement.Load(fileStream); return(ExpectedResults.Parse(xml, Path.GetDirectoryName(expectedResultsFilePath))); } }
public BuildState(FileInfo projectFilePath, ExpectedResults expectedResults) { ProjectFile = projectFilePath; ExpectedResults = expectedResults; }
public AssemblyValidator(FileInfo projectFile, string assemblyPath, ExpectedResults expectedResults) { this.projectFile = projectFile; this.assemblyPath = assemblyPath; this.expectedResults = expectedResults; }