示例#1
0
            public void ThenRespositoryFailsWhenGettingSignatureElement()
            {
                // Arrange
                var document   = new XmlDocument();
                var repository = new SignedXmlRepository(document);

                // Act / Assert
                Assert.ThrowsAny <Exception>(() => repository.GetSignatureElement());
            }
示例#2
0
            public void ThenRespositoryGetsSignatureElement()
            {
                // Arrange
                var repository = new SignedXmlRepository(_document);

                // Act
                XmlElement signatureElement = repository.GetSignatureElement();

                // Assert
                Assert.NotNull(signatureElement);
            }