public void testVirtualGiftCard_Full()
        {
            virtualGiftCardType virtualGiftCard = new virtualGiftCardType();

            virtualGiftCard.accountNumberLength = 16;
            virtualGiftCard.giftCardBin         = "123456";

            String actual   = virtualGiftCard.Serialize();
            String expected = @"
<accountNumberLength>16</accountNumberLength>
<giftCardBin>123456</giftCardBin>";

            Assert.AreEqual(Regex.Replace(expected, @"\s+", String.Empty), Regex.Replace(actual, @"\s+", String.Empty));
        }
Ejemplo n.º 2
0
        public void testVirtualGiftCard_Full()
        {
            virtualGiftCardType virtualGiftCard = new virtualGiftCardType();

            virtualGiftCard.accountNumberLength = 16;
            virtualGiftCard.giftCardBin         = "123456";

            String actual   = virtualGiftCard.Serialize();
            String expected = @"
<accountNumberLength>16</accountNumberLength>
<giftCardBin>123456</giftCardBin>";

            Assert.AreEqual(expected, actual);
        }
        public void testVirtualGiftCard_Full()
        {
            virtualGiftCardType virtualGiftCard = new virtualGiftCardType();
            virtualGiftCard.accountNumberLength = 16;
            virtualGiftCard.giftCardBin = "123456";

            String actual = virtualGiftCard.Serialize();
            String expected = @"
            <accountNumberLength>16</accountNumberLength>
            <giftCardBin>123456</giftCardBin>";
            Assert.AreEqual(expected, actual);
        }