-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTransakOnRampTests.cs
More file actions
33 lines (31 loc) · 973 Bytes
/
TransakOnRampTests.cs
File metadata and controls
33 lines (31 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Threading.Tasks;
using NUnit.Framework;
using Sequence.Pay.Transak;
namespace Sequence.Pay.Tests.Transak
{
public class TransakOnRampTests
{
[Test]
public async Task TestGetSupportedCountries()
{
try
{
SupportedCountry[] supportedCountries = await TransakOnRamp.GetSupportedCountries();
Assert.IsNotNull(supportedCountries);
Assert.Greater(supportedCountries.Length, 0);
}
catch (Exception e)
{
Assert.Fail("Expected no exception, but got: " + e.Message);
}
}
[Test]
public async Task TestGetTransakLink()
{
TransakOnRamp onRamp = new TransakOnRamp("0xc683a014955b75F5ECF991d4502427c8fa1Aa249");
string transakOnRampLink = await onRamp.GetTransakLink();
Assert.IsNotNull(transakOnRampLink);
}
}
}