コード例 #1
0
        public void Properties()
        {
            XmlEncryption exml = new XmlEncryption();

            exml.SetXmlDSigSearchDepth(10);
            exml.SetResolver(null);
            exml.SetPadding("NOPADDING");
            exml.SetMode("CBC");
            exml.SetEncoding(Encoding.ASCII);
            exml.Recipient = "Recipient";

            Assert.Equal(10, exml.GetXmlDSigSearchDepth());
            Assert.Null(exml.GetResolver());
            Assert.Equal("NOPADDING", exml.GetPadding());
            Assert.Equal("CBC", exml.GetMode());
            Assert.Equal(Encoding.ASCII, exml.GetEncoding());
            Assert.Equal("Recipient", exml.Recipient);
        }