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
I had some tests that were checking for a key in the exception data property that have stopped working since updating the version of nunit.
Narrowing it down I believe it's because it only implements the non generic IDictionary and maybe a change has been made that hasn't taken that into account. This has stopped working since 3.11
It can be replicated fairly easily. Assert.That(new Exception().Data, Contains.Key("hello"));
Previously this would return
Expected: dictionary containing key "hello"
But was: <empty>
but now returns
System.ArgumentException : The ListDictionaryInternal value must have a ContainsKey or Contains(TKey) method.
The text was updated successfully, but these errors were encountered:
Thanks, it is odd that this was working before. We did make changes to include Exception data in messages, but knowing the nature of that change I don't think it is related.
@stevenaw I think it makes sense to fix it, and had actually planned to look at it, but I've not had much time the last month or so. So great that you took a look at it.
I had some tests that were checking for a key in the exception data property that have stopped working since updating the version of nunit.
Narrowing it down I believe it's because it only implements the non generic
IDictionary
and maybe a change has been made that hasn't taken that into account. This has stopped working since3.11
It can be replicated fairly easily.
Assert.That(new Exception().Data, Contains.Key("hello"));
Previously this would return
but now returns
The text was updated successfully, but these errors were encountered: