Serialize() public method

public Serialize ( ) : string
return string
        public void testAddPhysicalCheckCredit()
        {
            physicalCheckCredit physicalCheckCredit = new physicalCheckCredit();
            physicalCheckCredit.fundingSubmerchantId = "123456";
            physicalCheckCredit.fundsTransferId = "123467";
            physicalCheckCredit.amount = 107L;

            batchRequest.addPhysicalCheckCredit(physicalCheckCredit);

            Assert.AreEqual(1, batchRequest.getNumPhysicalCheckCredit());
            Assert.AreEqual(107L, batchRequest.getPhysicalCheckCreditAmount());

            mockLitleFile.Verify(litleFile => litleFile.createRandomFile(It.IsAny<String>(), It.IsAny<String>(), It.IsAny<String>(), mockLitleTime.Object));
            mockLitleFile.Verify(litleFile => litleFile.AppendLineToFile(mockFilePath, physicalCheckCredit.Serialize()));
        }