Description
Description
The CollectionAssert.IsSubsetOf
error message could have more information.
Currently it only says it failed. But what elements are missing is actually ommitted.
testfx/src/TestFramework/MSTest.Core/Assertions/CollectionAssert.cs
Lines 451 to 459 in 2166170
The helper method seems to have the information but will not give that to the caller. (It takes a shourtcut on an error not searching for mor problems but even one element that is missing is an information for the tester)
testfx/src/TestFramework/MSTest.Core/Assertions/CollectionAssert.cs
Lines 1270 to 1306 in 2166170
Steps to reproduce
Write a Method that uses Assert.IsSubsetOf
with an input that will fail
Expected behavior
Information what elements are missing in the collection.
Actual behavior
The Message only says something with the collection is wrong. CollectionAssert.IsSubsetOf failed.
Environment
- MSTest.TestAdapter (1.4.0)
- MSTest.TestFramework (1.4.0)