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
The analyzer (version 3.10 with NUnit 3.14.0) issues "warning NUnit2045: Call independent Assert statements from inside an Assert.Multiple". This statement is not fully correct,...
...because calling a method on an object may effect its state, i.e. statements are not "independent".
Consider this piece of test code where
rate = new Rate(interval, window)
:The analyzer (version 3.10 with NUnit 3.14.0) issues "warning NUnit2045: Call independent Assert statements from inside an Assert.Multiple". This statement is not fully correct,...
Notes:
Update()
method calculatesValue
and returnstrue
ifValue
has changed.Assert.Multiple()
passes:Potential solutions:
Assert.Multiple()
with the NUnit team.The text was updated successfully, but these errors were encountered: