Represents the expected (successful) output of post-build assembly processing.
Expected results files take the following form: <ExpectedResults Script="path/to/script" > <Classes> <Include Name="SomeType" /> <Exclude Name="OtherType" /> </Classes> <Warnings> <Pattern> regex </Pattern> </Warnings> <Errors> <Pattern> regex </Pattern> </Errors> </ExpectedResults>
Ejemplo n.º 1
0
        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)));
            }
        }
Ejemplo n.º 2
0
 public BuildState(FileInfo projectFilePath, ExpectedResults expectedResults)
 {
     ProjectFile     = projectFilePath;
     ExpectedResults = expectedResults;
 }
Ejemplo n.º 3
0
 public AssemblyValidator(FileInfo projectFile, string assemblyPath, ExpectedResults expectedResults)
 {
     this.projectFile     = projectFile;
     this.assemblyPath    = assemblyPath;
     this.expectedResults = expectedResults;
 }
Ejemplo n.º 4
0
 public BuildState(FileInfo projectFilePath, ExpectedResults expectedResults)
 {
     ProjectFile = projectFilePath;
     ExpectedResults = expectedResults;
 }
Ejemplo n.º 5
0
 public AssemblyValidator(FileInfo projectFile, string assemblyPath, ExpectedResults expectedResults)
 {
     this.projectFile = projectFile;
     this.assemblyPath = assemblyPath;
     this.expectedResults = expectedResults;
 }