Serialize() public method

public Serialize ( ) : string
return string
コード例 #1
0
        public void testActivateReversal_Full()
        {
            activateReversal activateReversal = new activateReversal();
            activateReversal.id = "theId";
            activateReversal.reportGroup = "theReportGroup";
            activateReversal.customerId = "theCustomerId";
            activateReversal.litleTxnId = "123";

            String actual = activateReversal.Serialize();
            String expected = @"
            <activateReversal id=""theId"" customerId=""theCustomerId"" reportGroup=""theReportGroup"">
            <litleTxnId>123</litleTxnId>
            </activateReversal>";
            Assert.AreEqual(expected, actual);
        }