10 references to Code
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (3)
2410if (expectedError == null || ErrorFacts.IsWarning((ErrorCode)expectedError.Code)) 9017if (expectedDiagnostics.Any(d => ErrorFacts.GetSeverity((ErrorCode)d.Code) == DiagnosticSeverity.Error)) 9062if (expectedDiagnostics.Any(d => ErrorFacts.GetSeverity((ErrorCode)d.Code) == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NativeIntegerTests.cs (3)
6547if (expectedError == null || ErrorFacts.IsWarning((ErrorCode)expectedError.Code)) 13267if (expectedDiagnostics.Any(d => ErrorFacts.GetSeverity((ErrorCode)d.Code) == DiagnosticSeverity.Error)) 13310if (expectedDiagnostics.Any(d => ErrorFacts.GetSeverity((ErrorCode)d.Code) == DiagnosticSeverity.Error))
Semantics\SemanticErrorTests.cs (1)
21090var compatibleExpected = fullExpected.Where(d => !d.Code.Equals((int)ErrorCode.WRN_NubExprIsConstBool2)).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\UsedAssembliesTests.cs (2)
109if (!after.Any(d => ErrorFacts.GetSeverity((ErrorCode)d.Code) == DiagnosticSeverity.Error)) 219if (old.Code is (int)ErrorCode.HDN_UnusedUsingDirective)
Symbols\GenericConstraintTests.cs (1)
7317Assert.Equal(expectedDiagnostic.Code, c.GetUseSiteDiagnostic().Code);