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
Here LastIndexOf may return -1 in case there is no '.' in a class name leading to the exception in the Substring method. The only case there is no '.' symbol in the full name of a class is when the class doesn't have a namespace.
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
What is the current behavior?
Allure.NUnit throws an exception if no namespace is defined for a test.
If the current behavior is a bug, please provide the steps to reproduce and if possible, a minimal demo of the problem
Given the following test:
When we run it, Allure.NUnit throws
ArgumentOutOfRangeException
with the message"Length cannot be less than zero."
.What is the expected behavior?
No exception is thrown. The report successfully generated.
Please tell us about your environment:
Other information
The exception is thrown because of the following code:
allure-csharp/Allure.NUnit/Core/AllureNUnitHelper.cs
Lines 58 to 60 in 4a55fce
Here
LastIndexOf
may return-1
in case there is no'.'
in a class name leading to the exception in theSubstring
method. The only case there is no'.'
symbol in the full name of a class is when the class doesn't have a namespace.The text was updated successfully, but these errors were encountered: