Guest User

Untitled

a guest
Oct 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [Test]
  2. public void CollectionSubsetConstraint()
  3. {
  4. ///CollectionSubsetConstraint tests that one IEnumerable is a subset of another.
  5. ///If the actual value passed does not implement IEnumerable, an exception is thrown.
  6.  
  7. //Syntax: Is.SubsetOf(IEnumerable)
  8.  
  9. //arrange
  10. int[] iarray = new int[] { 1, 3 };
  11.  
  12. //act
  13.  
  14. //assert
  15. Assert.That(iarray, Is.SubsetOf(new int[] {1, 2, 3 }));
  16. }
Add Comment
Please, Sign In to add comment