public static TCompilation VerifyEmitDiagnostics <TCompilation>(this TCompilation c, IEnumerable <ResourceDescription> manifestResources, params DiagnosticDescription[] expected) where TCompilation : Compilation { var pdbStream = CLRHelpers.IsRunningOnMono() ? null : new MemoryStream(); c.Emit(new MemoryStream(), pdbStream: pdbStream, manifestResources: manifestResources).Diagnostics.Verify(expected); return(c); }
public static TCompilation VerifyEmitDiagnostics <TCompilation>(this TCompilation c, EmitOptions options, params DiagnosticDescription[] expected) where TCompilation : Compilation { var pdbStream = CLRHelpers.IsRunningOnMono() ? null : new MemoryStream(); c.Emit(new MemoryStream(), pdbStream: pdbStream, options: options).Diagnostics.Verify(expected); return(c); }
public ClrOnlyFact(ClrOnlyReason reason = ClrOnlyReason.Unknown) { Reason = reason; if (CLRHelpers.IsRunningOnMono()) { Skip = GetSkipReason(Reason); } }