Exemplo n.º 1
0
        public void SolveRequestResponseTest()
        {
            //Arrange
            SolveRequestResponse srr = new SolveRequestResponse(123);

            //Act
            byte[] data = srr.GetXmlData();

            //Assert
            Assert.IsNotNull(data);

            Debug.WriteLine(System.Text.Encoding.UTF8.GetString(data));
        }
Exemplo n.º 2
0
        public void SolveRequestResponseParseTest()
        {
            //Arrange
            SolveRequestResponse srr = new SolveRequestResponse(123);
            byte[] data = srr.GetXmlData();

            //Act
            XMLParser parser = new XMLParser(data);

            //Assert
            Assert.IsNotNull(parser);
            Assert.AreEqual(MessageTypes.SolveRequestResponse, parser.MessageType);
            Assert.AreEqual(srr.Id, ((SolveRequestResponse)parser.Message).Id);
        }