/// <summary> /// Executes a test /// </summary> /// <param name="fileNames">The set of file names</param> /// <param name="outputFileName">The name of the output file name. Null implies no code generation.</param> protected void runTest(string[] fileNames, string outputFileName) { this.FromError = ErrorManager.Instance.ErrorCount; Parse.parse(fileNames, this.generateCode?outputFileName:null, this.generateCode?this.target:null, this.run); this.ToError = ErrorManager.Instance.ErrorCount; int expectedNumberOfErrors; this.Success = ErrorFile.CheckErrors(fileNames, this.FromError, this.ToError, out expectedNumberOfErrors); this.ExpectedErrors = expectedNumberOfErrors; }
/// <summary> /// Executes a test /// </summary> /// <param name="fileNames">The set of file names</param> /// <param name="outputFileName">The name of the output file name. Null implies no code generation.</param> protected void runTest(string[] fileNames, string outputFileName) { this.FromError = ErrorManager.Instance.ErrorCount; Compiler.Parser.Parse(fileNames, this.generateCode ? outputFileName : null, this.generateCode ? this.targetPlatform : TargetPlatform.CLR, Application.StartupPath + "\\Tests\\", "ilasm.exe", "TypeTable.txt", this.run, this.dynamic, this.server, this.specialized); this.ToError = ErrorManager.Instance.ErrorCount; int expectedNumberOfErrors; this.Success = ErrorFile.CheckErrors(fileNames, this.FromError, this.ToError, out expectedNumberOfErrors); this.ExpectedErrors = expectedNumberOfErrors; }