BililiveRecorder/test/BililiveRecorder.Core.UnitTests/Danmaku/ManualTests.cs

36 lines
972 B
C#
Raw Normal View History

2021-02-23 18:03:37 +08:00
using System;
using System.Threading.Tasks;
using BililiveRecorder.Core.Api.Danmaku;
using BililiveRecorder.Core.Api.Http;
using Xunit;
namespace BililiveRecorder.Core.UnitTests.Danmaku
{
public class ManualTests
{
2021-02-26 21:57:10 +08:00
[Fact(Skip = "skip")]
2021-02-23 18:03:37 +08:00
public async Task TestAsync()
{
2022-05-17 00:53:37 +08:00
var client = new DanmakuClient(new HttpApiClient(null!), null!);
2021-02-23 18:03:37 +08:00
client.StatusChanged += this.Client_StatusChanged;
client.DanmakuReceived += this.Client_DanmakuReceived;
await Task.Yield();
throw new NotImplementedException();
// await client.ConnectAsync().ConfigureAwait(false);
// await Task.Delay(TimeSpan.FromMinutes(5)).ConfigureAwait(false);
}
2022-05-17 00:53:37 +08:00
private void Client_DanmakuReceived(object? sender, DanmakuReceivedEventArgs e)
2021-02-23 18:03:37 +08:00
{
}
2022-05-17 00:53:37 +08:00
private void Client_StatusChanged(object? sender, StatusChangedEventArgs e)
2021-02-23 18:03:37 +08:00
{
}
}
}