Is it possible to compare elements of List by value in a single api like in MSTest? #1333
Unanswered
soakula-cp
asked this question in
Q&A
Replies: 1 comment 2 replies
-
IsEquivalentTo should be what you're looking for |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In MSTest we can compare contents of two list using
However, when I'm trying to the folloing, I'm getting below error
Expected actualList to be equal to System.Collections.Generic.List
1[System.String] but found System.Collections.Generic.List
1[System.String]a Assert.That(actualList).IsEqualTo(expectedList)
Is there a simpler way to compare two lists / IEnumerable by content in TUnit?
Beta Was this translation helpful? Give feedback.
All reactions