コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public ClrOnlyFact(ClrOnlyReason reason = ClrOnlyReason.Unknown)
        {
            Reason = reason;

            if (CLRHelpers.IsRunningOnMono())
            {
                Skip = GetSkipReason(Reason);
            }
        }