public void SegmentCanRead(JwtTheoryData theoryData) { var context = TestUtilities.WriteHeader($"{this}.SegmentCanRead", theoryData); var handler = new JsonWebTokenHandler(); if (theoryData.CanRead != handler.CanReadToken(theoryData.Token)) { context.Diffs.Add($"theoryData.CanRead != handler.CanReadToken(theoryData.Token))"); } TestUtilities.AssertFailIfErrors(context); }