Exemple #1
0
        public void ExtractClaimsString_Returns_Right_Amount_Of_Guids(int numclaims)
        {
            var guids = DataGeneration.GenerateStringClaims(numclaims);

            var expected = numclaims;
            var actual   = ClaimParsing.ExtractClaims(guids).Count();

            Assert.Equal(expected, actual);
        }
        public void GenerateStringClaims_Generates_Right_Amount_Of_Guids(int numclaims)
        {
            var guids = DataGeneration.GenerateStringClaims(numclaims);

            // With hypens one guid should be 36 chars
            var expected = numclaims * 36;
            var actual   = guids.Length;

            Assert.NotNull(guids);
            Assert.Equal(expected, actual);
        }
Exemple #3
0
 public void Setup()
 {
     Data     = DataGeneration.GenerateStringClaims(NumClaims);
     byteData = DataGeneration.GenerateByteArrayClaims(NumClaims);
 }
 public void GenerateStringClaims_Generates_Throws_Right_Exception()
 {
     Assert.Throws <ArgumentNullException>(()
                                           => DataGeneration.GenerateStringClaims(0));
 }