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
@OsirisTerje This slipped through because when I ensured all tests in the legacy assembly were converted, I forgot to check the test coverage. Assert.IsAssignableFrom and Assert.IsNotAssignableFrom are not tested. I will update the tests and create a analyzer rule for these.
NUnit.Analyzers 4.3.0 missed an Assert.IsAssignableFrom that caused a build error after upgrading to NUnit 4.2.2, from NUnit 3.13.3.
That is there was no build error or warning when on NUnit 3.13.3 and building with NUnit.Analyzers 4.3.0.
Or if there was a warning, I missed it because I had tens of thousands of changes to make.
I suggest this becomes a build error for NUnit.Analyzers.
Fixed manually by doing this:
Assert.IsAssignableFrom<ClassName>(objectVariable);
->Assert.That(objectVariable, Is.AssignableFrom(typeof(ClassName)));
The text was updated successfully, but these errors were encountered: