Esempio n. 1
0
 /// <summary>Verifies that two specified collections are not equivalent. The assertion fails if the collections are equivalent. Displays a message if the assertion fails.</summary>
 /// <param name="expected">The first collection to compare. This contains the elements the unit test expects to be different from the actual collection.</param>
 /// <param name="actual">The second collection to compare. This is the collection the unit test produced.</param>
 /// <param name="message">A message to display if the assertion fails. This message can be seen in the unit test results.</param>
 /// <exception cref="AssertFailedException">The two collections contain the same elements, including the same number of duplicate occurrences of each element.</exception>
 public virtual void AreNotEquivalent(ICollection expected, ICollection actual, string message) => CollectionAssert.AreNotEquivalent(expected, actual, message, null);
Esempio n. 2
0
 /// <summary>Verifies that two specified collections are not equivalent. The assertion fails if the collections are equivalent. Displays a message if the assertion fails, and applies the specified formatting to it.</summary>
 /// <param name="expected">The first collection to compare. This contains the elements the unit test expects to be different from the actual collection.</param>
 /// <param name="actual">The second collection to compare. This is the collection the unit test produced.</param>
 /// <param name="message">A message to display if the assertion fails. This message can be seen in the unit test results.</param>
 /// <param name="parameters">An array of parameters to use when formatting <paramref name="message" />.</param>
 /// <exception cref="AssertFailedException">The two collections contain the same elements, including the same number of duplicate occurrences of each element.</exception>
 public virtual void AreNotEquivalent(ICollection expected, ICollection actual, string message, params object[] parameters) => CollectionAssert.AreNotEquivalent(expected, actual, message, parameters);
Esempio n. 3
0
 /// <summary>Verifies that two specified collections are not equivalent. The assertion fails if the collections are equivalent.</summary>
 /// <param name="expected">The first collection to compare. This contains the elements the unit test expects to be different from the actual collection.</param>
 /// <param name="actual">The second collection to compare. This is the collection the unit test produced.</param>
 /// <exception cref="AssertFailedException">The two collections contain the same elements, including the same number of duplicate occurrences of each element.</exception>
 public virtual void AreNotEquivalent(ICollection expected, ICollection actual) => CollectionAssert.AreNotEquivalent(expected, actual, string.Empty, null);