public void GetValues_NoMatches_ReturnsEmptyResult()
 {
     IEnumerable<Claim> claims = new Claim[]{
         new Claim("type1", "value1"),
         new Claim("type2", "value2"),
     };
     var result = claims.GetValues("type3");
     Assert.AreEqual(0, result.ToArray().Count());
 }
 public void GetValues_OneMatch_ReturnsCorrectValue()
 {
     IEnumerable<Claim> claims = new Claim[]{
         new Claim("type1", "value1"),
         new Claim("type2", "value2"),
         new Claim("type3", "value3"),
     };
     var result = claims.GetValues("type1");
     Assert.AreEqual(1, result.ToArray().Count());
     Assert.AreEqual("value1", result.First());
 }
 public void GetValues_ManyMatches_ReturnsCorrectValues()
 {
     IEnumerable<Claim> claims = new Claim[]{
         new Claim("type1", "value11"),
         new Claim("type1", "value12"),
         new Claim("type2", "value2"),
         new Claim("type3", "value3"),
     };
     var result = claims.GetValues("type1");
     Assert.AreEqual(2, result.ToArray().Count());
     CollectionAssert.AreEquivalent(new string[] { "value11", "value12" }, result.ToArray());
 }