Quote:System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.CompilerServices.RuntimeHelpers.GetSpanDataFrom(RuntimeFieldHandle fldHandle, RuntimeTypeHandle targetTypeHandle, Int32& count)
at System.Runtime.CompilerServices.RuntimeHelpers.CreateSpan[T](RuntimeFieldHandle fldHandle)
at TestProject2.UnitTest1.Test1() in C:\Users\DaveLeaver\Desktop\Code\TestProject2\TestProject2\UnitTest1.cs:line 11
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Using this very simple test (.net 8, xunit 2):
Quote:[Fact]
public void Test1()
{
var numbers = new int[] { 1, 2 };
Assert.Equal([1, 2], numbers);
}
Minimal project:
https://github.com/danzel/NCrunchBug/
Built in VS test runner succeeds.
This thread came up in my searches,
https://github.com/dotnet/runtime/issues/79477
Thanks!