Exemple #1
0
        public void Constructor(ExclusiveCanonicalizationTransformTheoryData theoryData)
        {
            TestUtilities.WriteHeader($"{this}.Constructor", theoryData);
            var transform = new ExclusiveCanonicalizationTransform(theoryData.IncludeComments);

            Assert.Equal(transform.IncludeComments, theoryData.IncludeComments);
        }
Exemple #2
0
        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);
        }