using NewLife.Yuque;
using Xunit;
namespace XUnitTest;
public class BookTests
{
private readonly YuqueClient _client;
public BookTests() => _client = BasicTest.CreateClient();
[Fact]
public async void GetRepos()
{
var list = await _client.GetRepos(1144030);
Assert.NotNull(list);
Assert.True(list.Length > 0);
}
[Fact]
public async void GetGroupRepos()
{
var list = await _client.GetGroupRepos("newlifex");
Assert.NotNull(list);
Assert.True(list.Length > 0);
}
[Fact]
public async void GetRepo()
{
var repo = await _client.GetRepo(895145);
Assert.NotNull(repo);
}
[Fact]
public async void GetRepo2()
{
var repo = await _client.GetRepo("smartstone/nx");
Assert.NotNull(repo);
}
}
|