You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VerifyCS.Diagnostic(ContractsCheckAnalyzer.DecodeMessageWithLoadContextDiagnostic.Rule).WithLocation(basis+39,41).WithArguments("CheckDecode","\"This message is suspicious\""),
42
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,24).WithMessage("'ICancelable' is inaccessible due to its protection level"),
43
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,67).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
42
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,24,752,35).WithMessage("'ICancelable' is inaccessible due to its protection level"),
43
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,67,752,77).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
44
44
};
45
45
46
46
vartest=newVerifyCS.Test
@@ -126,9 +126,9 @@ public async Task ContractsCheckFix()
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,24).WithMessage("'ICancelable' is inaccessible due to its protection level"),
130
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,67).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
131
-
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithLocation("Test1.cs",753,90).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
129
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,24,752,35).WithMessage("'ICancelable' is inaccessible due to its protection level"),
130
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,67,752,77).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
131
+
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",753,90,753,93).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
132
132
},
133
133
},
134
134
FixedState=
@@ -146,9 +146,9 @@ public async Task ContractsCheckFix()
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,24).WithMessage("'ICancelable' is inaccessible due to its protection level"),
150
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,67).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
151
-
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithLocation("Test1.cs",753,90).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
149
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,24,752,35).WithMessage("'ICancelable' is inaccessible due to its protection level"),
150
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,67,752,77).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
151
+
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",753,90,753,93).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
0 commit comments