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>
コード例 #1
0
ファイル: Program.cs プロジェクト: tompee26/stiletto
        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)));
            }
        }
コード例 #2
0
ファイル: BuildState.cs プロジェクト: tompee26/stiletto
 public BuildState(FileInfo projectFilePath, ExpectedResults expectedResults)
 {
     ProjectFile     = projectFilePath;
     ExpectedResults = expectedResults;
 }
コード例 #3
0
 public AssemblyValidator(FileInfo projectFile, string assemblyPath, ExpectedResults expectedResults)
 {
     this.projectFile     = projectFile;
     this.assemblyPath    = assemblyPath;
     this.expectedResults = expectedResults;
 }
コード例 #4
0
ファイル: BuildState.cs プロジェクト: benjamin-bader/stiletto
 public BuildState(FileInfo projectFilePath, ExpectedResults expectedResults)
 {
     ProjectFile = projectFilePath;
     ExpectedResults = expectedResults;
 }
コード例 #5
0
 public AssemblyValidator(FileInfo projectFile, string assemblyPath, ExpectedResults expectedResults)
 {
     this.projectFile = projectFile;
     this.assemblyPath = assemblyPath;
     this.expectedResults = expectedResults;
 }