Skip to content

Commit 2344db7

Browse files
test(DagApi): is not implemented
1 parent 4cd1517 commit 2344db7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

test/CoreApi/DagApiTest.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using Newtonsoft.Json.Linq;
3+
using System;
4+
using System.Text;
5+
6+
namespace Ipfs.Api
7+
{
8+
[TestClass]
9+
public class DagApiTest
10+
{
11+
[TestMethod]
12+
public void GetAsync()
13+
{
14+
var ipfs = TestFixture.Ipfs;
15+
ExceptionAssert.Throws<NotImplementedException>(() => ipfs.Dag.GetAsync("cid"));
16+
}
17+
18+
[TestMethod]
19+
public void PutAsync()
20+
{
21+
var ipfs = TestFixture.Ipfs;
22+
ExceptionAssert.Throws<NotImplementedException>(() => ipfs.Dag.PutAsync(null, null));
23+
}
24+
25+
}
26+
}
27+

test/IpfsApiTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
</ItemGroup>
8787
<ItemGroup>
8888
<Compile Include="CoreApi\FileSystemApiTest.cs" />
89+
<Compile Include="CoreApi\DagApiTest.cs" />
8990
<Compile Include="CoreApi\ObjectApiTest.cs" />
9091
<Compile Include="CoreApi\SwarmApiTest.cs" />
9192
<Compile Include="CoreApi\DhtApiTest.cs" />

0 commit comments

Comments
 (0)