Edit on GitHub

xUnit1023   v2 v3   Error

Theory methods cannot have default parameter values

Cause

In versions of xUnit.net prior to 2.2.0, [Theory] methods did not support default values on parameters.

How to fix violations

To fix a violation of this rule, upgrade to xUnit.net 2.2.0 or later.

Copyright © .NET Foundation. Contributions welcomed at https://github.com/xunit/xunit/tree/gh-pages.