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
Message:
System.Exception : The number of passed in parameters (2) must be fewer than the number of parameters for the method (1).
Stack Trace:
ReflectionFileNameBuilder.GetParameterText(MethodInfo method, VerifySettings settings) line 55
ReflectionFileNameBuilder.GetFileNamePrefix(MethodInfo method, Type type, VerifySettings settings, PathInfo pathInfo, String uniqueness) line 32
ReflectionFileNameBuilder.FileNamePrefix(MethodInfo method, Type type, String sourceFile, VerifySettings settings, String uniqueness) line 12
<>c__DisplayClass0_0.<GetVerifier>b__0(String uniqueness) line 15
InnerVerifier.ctor(String sourceFile, VerifySettings settings, GetFileConvention fileConvention) line 17
Verifier.GetVerifier(VerifySettings settings, String sourceFile) line 12
<<Verify>b__0>d.MoveNext() line 29
--- End of stack trace from previous location ---
FooBarBazTest(String[] values) line 1337
--- End of stack trace from previous location ---
Current workaround:UseParameters(string.Join(",", values));
It would be cool if Verify can detect this and string.Join(",", values) for us.
Versions
.net 6
verify: 16.9.0
The text was updated successfully, but these errors were encountered:
egil
changed the title
UseParameters and params string[] valuesUseParameters and params string[] values throws
May 31, 2022
In a data driven test, that use an undetermined number of parameters via eg.
params string[] values
,UseParameter
throws.The test:
This throws the following exception:
Current workaround:
UseParameters(string.Join(",", values));
It would be cool if Verify can detect this and
string.Join(",", values)
for us.Versions
.net 6
verify: 16.9.0
The text was updated successfully, but these errors were encountered: