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); }
public void Setup() { Data = DataGeneration.GenerateStringClaims(NumClaims); byteData = DataGeneration.GenerateByteArrayClaims(NumClaims); }
public void GenerateStringClaims_Generates_Throws_Right_Exception() { Assert.Throws <ArgumentNullException>(() => DataGeneration.GenerateStringClaims(0)); }