Exemple #1
0
        public virtual void ShouldParseDocumentToCreateDomVersionOfMessage()
        {
            RequestMessage message = SimpleRequestMessage.Create("<myMessage></myMessage>");

            Assert.IsNotNull(message.GetMessageAsDocument(), "document");
//			Assert.AreEqual("myMessage", message.GetMessageAsDocument().DocumentElement.TagName, "document element");
        }
Exemple #2
0
        public virtual void ShouldRenderDocumentToCreateStringVersionOfMessage()
        {
            XmlDocument    document = new DocumentFactory().CreateFromString("<myMessage></myMessage>");
            RequestMessage message  = SimpleRequestMessage.Create(document);

            Assert.IsTrue(message.GetMessageAsString().Contains("<myMessage"), "message");
        }