/// <summary>Verifies that the first collection is a subset of the second collection. Displays a message if the assertion fails.</summary> /// <param name="subset">The collection expected to be a subset of <paramref name="superset" />.</param> /// <param name="superset">The collection expected to be a superset of <paramref name="subset" />.</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">An element in <paramref name="subset" /> is not found in <paramref name="superset" /> or an element in <paramref name="subset" /> is not found in <paramref name="superset" /> in sufficient quantity.</exception> public virtual void IsSubsetOf(ICollection subset, ICollection superset, string message) => CollectionAssert.IsSubsetOf(subset, superset, message, null);
/// <summary>Verifies that the first collection is a subset of the second collection. Displays a message if the assertion fails, and applies the specified formatting to it.</summary> /// <param name="subset">The collection expected to be a subset of <paramref name="superset" />.</param> /// <param name="superset">The collection expected to be a superset of <paramref name="subset" />.</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">An element in <paramref name="subset" /> is not found in <paramref name="superset" /> or an element in <paramref name="subset" /> is not found in <paramref name="superset" /> in sufficient quantity.</exception> public virtual void IsSubsetOf(ICollection subset, ICollection superset, string message, params object[] parameters) => CollectionAssert.IsSubsetOf(subset, superset, message, parameters);
/// <summary>Verifies that the first collection is a subset of the second collection.</summary> /// <param name="subset">The collection expected to be a subset of <paramref name="superset" />.</param> /// <param name="superset">The collection expected to be a superset of <paramref name="subset" />.</param> /// <exception cref="AssertFailedException">An element in <paramref name="subset" /> is not found in <paramref name="superset" /> or an element in <paramref name="subset" /> is not found in <paramref name="superset" /> in sufficient quantity.</exception> public virtual void IsSubsetOf(ICollection subset, ICollection superset) => CollectionAssert.IsSubsetOf(subset, superset, string.Empty, null);