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