コード例 #1
0
        public void ShouldSignXmlWithExportsMethodsUnicode()
        {
            var xml = Xml.OuterXml;

            Exports.SignSHA256Unicode(ref xml, "evtInfoEmpregador", SerialNumber, TokenPin);

            var signedXml = new XmlDocument();

            signedXml.LoadXml(xml);
            signedXml.Save("envio-assinado.xml");
            Assert.IsTrue(signedXml.GetElementsByTagName("Signature").Count > 0);
        }