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

Commit

Permalink
Added more test to fix the coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirbyrawr committed Apr 23, 2020
1 parent 34abad3 commit d7616ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stellar-dotnet-sdk-test/responses/EffectDeserializerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,13 @@ private static void AssertTrustlineAuthorizedToMaintainLiabilitiesEffect(EffectR
Assert.IsTrue(instance is TrustlineAuthorizedToMaintainLiabilitiesEffectResponse);
var effect = (TrustlineAuthorizedToMaintainLiabilitiesEffectResponse)instance;

TrustlineAuthorizationResponse trustline = new TrustlineAuthorizationResponse("GB3E4AB4VWXJDUVN4Z3CPBU5HTMWVEQXONZYVDFMHQD6333KHCOL3UBR", "credit_alphanum12", "TESTTEST");
Assert.AreEqual(new TrustlineAuthorizationResponse().GetType(), instance.GetType());

Assert.AreEqual(effect.Account, "GA6U5X6WOPNKKDKQULBR7IDHDBAQKOWPHYEC7WSXHZBFEYFD3XVZAKOO");
Assert.AreEqual(effect.AssetType, "credit_alphanum12");
Assert.AreEqual(effect.AssetCode, "TESTTEST");
Assert.AreEqual(effect.Trustor, "GB3E4AB4VWXJDUVN4Z3CPBU5HTMWVEQXONZYVDFMHQD6333KHCOL3UBR");
Assert.AreEqual(effect.AssetType, trustline.AssetType);
Assert.AreEqual(effect.AssetCode, trustline.AssetCode);
Assert.AreEqual(effect.Trustor, trustline.Trustor);

Assert.AreEqual(effect.Links.Operation.Href,
"http://horizon-testnet.stellar.org/operations/33788507721730");
Expand Down

0 comments on commit d7616ed

Please sign in to comment.