Error : APITests.StorageAndCacheTests.Tests.test
System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List1.System.Collections.IList.get_Item(Int32 index) at NUnit.Allure.Core.AllureNUnitHelper.<>c__DisplayClass21_2.<UpdateTestDataFromAttributes>b__2(TestResult x) at Allure.Commons.AllureLifecycle.UpdateTestCase(String uuid, Action
1 update)
at Allure.Commons.AllureLifecycle.UpdateTestCase(Action`1 update)
at NUnit.Allure.Core.AllureNUnitHelper.UpdateTestDataFromAttributes()
at NUnit.Allure.Core.AllureNUnitHelper.StopTestCase()
at NUnit.Allure.Core.AllureNUnitHelper.StopAll(Boolean isWrapedIntoStep)
at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.Execute(TestExecutionContext context)
at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()
.
[Category("Debug")]
[Test(Description = "test")]
[TestCase("1", TestName = "test")]
public void Test(string num)
{
Assert.AreEqual("1", num);
}
<- this test wont work
[Category("Debug")]
[Test(Description = "test")]
[TestCase("1", TestName = "test", Category = "Debug")]
public void Test(string num)
{
Assert.AreEqual("1", num);
}
<- this will be ok.