-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSideKickWalletTests.cs
More file actions
39 lines (34 loc) · 934 Bytes
/
SideKickWalletTests.cs
File metadata and controls
39 lines (34 loc) · 934 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
34
35
36
37
38
39
using System;
using System.Threading.Tasks;
using NUnit.Framework;
using UnityEngine;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Sequence.Sidekick
{
public class SequenceSidekickTests
{
SequenceSidekickClient sidekick;
string chainId;
[SetUp]
public void Setup()
{
sidekick = new SequenceSidekickClient(Chain.TestnetArbitrumSepolia);
chainId = sidekick.Chain.GetChainId();
}
[Test]
public async Task TestGetWalletAddress()
{
try
{
var sidekick = new SequenceSidekickClient();
string walletAddress = await sidekick.GetWalletAddress();
Assert.IsNotNull(walletAddress);
}
catch (Exception e)
{
Assert.Fail("Expected no exception, but got: " + e.Message);
}
}
}
}