Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Tried to upper a bit the coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirbyrawr committed Jun 4, 2020
1 parent 46cc702 commit 8685a20
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,13 @@ public void TestDeserializeWithMemoText()
{
var json = File.ReadAllText(Path.Combine("testdata", "transactionTransactionWithMemo.json"));
var transaction = JsonSingleton.GetInstance<TransactionResponse>(json);
TransactionResponse copyTransaction = new TransactionResponse(transaction.Hash, transaction.Ledger, transaction.CreatedAt, transaction.SourceAccount,
transaction.FeeAccount, transaction.Successful, transaction.PagingToken, transaction.SourceAccountSequence,
transaction.MaxFee, transaction.FeeCharged, transaction.OperationCount, transaction.EnvelopeXdr,
transaction.ResultXdr, transaction.ResultMetaXdr, transaction.Memo, transaction.Signatures,
transaction.FeeBumpTx, transaction.InnerTx, transaction.Links);

Assert.AreEqual(transaction.MemoValue, "Some sample text");
Assert.AreEqual(transaction.MemoValue, copyTransaction.MemoValue);
Assert.IsFalse(transaction.Successful);
}

Expand Down

0 comments on commit 8685a20

Please sign in to comment.