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
Expected Results:No error or warning in Error List
Actual Results: 1 Warning occurs after creating a NUnit Test Project
Severity Code Description Project File Line Suppression State
Warning AD0001 Analyzer 'NUnit.Analyzers.UseAssertMultiple.UseAssertMultipleAnalyzer' threw an exception of type 'System.IndexOutOfRangeException' with message 'Index was outside the bounds of the array.'.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at NUnit.Analyzers.UseAssertMultiple.UseAssertMultipleAnalyzer.AnalyzeAssertInvocation(OperationAnalysisContext context, IInvocationOperation assertOperation)
at NUnit.Analyzers.BaseAssertionAnalyzer.AnalyzeInvocation(OperationAnalysisContext context)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c.<ExecuteOperationAction>b__63_0(ValueTuple`2 data)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info)
-----
Suppress the following diagnostics to disable this analyzer: NUnit2045 TestProject2 1 Active
11/22/2022 8:57 AM
Bug filed on "[UI]Create Net Core Project"
The text was updated successfully, but these errors were encountered:
If this is the right place - dotnet/test-templates#252 - then it seems like they are already updated. But I cannot tell when they will be available in VS
Moved over from https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1684963
Steps to reproduce:
Severity Code Description Project File Line Suppression State
Warning AD0001 Analyzer 'NUnit.Analyzers.UseAssertMultiple.UseAssertMultipleAnalyzer' threw an exception of type 'System.IndexOutOfRangeException' with message 'Index was outside the bounds of the array.'.
Exception occurred with following context:
Compilation: TestProject2
IOperation: Invocation
SyntaxTree: C:\Users\CTITest\source\repos\TestProject2\TestProject2\UnitTest1.cs
SyntaxNode: Assert.Pass() [InvocationExpressionSyntax]@[196..209) (12,12)-(12,25)
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at NUnit.Analyzers.UseAssertMultiple.UseAssertMultipleAnalyzer.AnalyzeAssertInvocation(OperationAnalysisContext context, IInvocationOperation assertOperation)
at NUnit.Analyzers.BaseAssertionAnalyzer.AnalyzeInvocation(OperationAnalysisContext context)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c.<ExecuteOperationAction>b__63_0(ValueTuple`2 data)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info)
-----
Suppress the following diagnostics to disable this analyzer: NUnit2045 TestProject2 1 Active
The text was updated successfully, but these errors were encountered: