public virtual void Check(ILCompilerTestCaseResult trimmedResult) { InitializeResolvers(trimmedResult); try { var original = ResolveOriginalsAssembly(trimmedResult.ExpectationsAssemblyPath.FileNameWithoutExtension); AdditionalChecking(trimmedResult, original); } finally { _originalsResolver.Dispose(); } }
public virtual ILCompilerTestCaseResult Relink(ILCompilerTestCaseResult result) { PrepForLink(result.Sandbox, result.CompilationResult); return(Link(result.TestCase, result.Sandbox, result.CompilationResult, result.MetadataProvider)); }
protected virtual void AdditionalChecking(ILCompilerTestCaseResult linkResult, AssemblyDefinition original) { bool checkRemainingErrors = !HasAttribute(original.MainModule.GetType(linkResult.TestCase.ReconstructedFullTypeName), nameof(SkipRemainingErrorsValidationAttribute)); VerifyLoggedMessages(original, linkResult.LogWriter, checkRemainingErrors); }
void InitializeResolvers(ILCompilerTestCaseResult linkedResult) { _originalsResolver.AddSearchDirectory(linkedResult.ExpectationsAssemblyPath.Parent.ToString()); }