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