public void Constructor(ExclusiveCanonicalizationTransformTheoryData theoryData) { TestUtilities.WriteHeader($"{this}.Constructor", theoryData); var transform = new ExclusiveCanonicalizationTransform(theoryData.IncludeComments); Assert.Equal(transform.IncludeComments, theoryData.IncludeComments); }
public void ProcessAndDigest(ExclusiveCanonicalizationTransformTheoryData theoryData) { TestUtilities.WriteHeader($"{this}", "ProcessAndDigest", true); var context = new CompareContext($"{this}.ProcessAndDigest, {theoryData.TestId}"); try { theoryData.Transform.ProcessAndDigest(theoryData.XmlTokenStream, theoryData.HashAlgorithm); theoryData.ExpectedException.ProcessNoException(context); } catch (Exception ex) { theoryData.ExpectedException.ProcessException(ex, context); } TestUtilities.AssertFailIfErrors(context); }