Serialize() public méthode

public Serialize ( ) : string
Résultat string
        public void TestEmptyMethodOfPayment()
        {
            cardType card = new cardType();
            card.type = methodOfPaymentTypeEnum.Item;
            card.number = "4100000000000001";
            card.expDate = "1250";

            String actual = card.Serialize();
            String expected = @"
            <type></type>
            <number>4100000000000001</number>
            <expDate>1250</expDate>";
            Assert.AreEqual(expected, actual);
        }