BililiveRecorder/test/BililiveRecorder.Core.UnitTests/PublicApi.cs

19 lines
498 B
C#
Raw Normal View History

using System.Threading.Tasks;
using PublicApiGenerator;
using VerifyXunit;
using Xunit;
namespace BililiveRecorder.Core.UnitTests
{
[UsesVerify]
public class PublicApi
{
[Fact]
public Task HasNoChangesAsync()
{
2023-01-14 23:00:40 +08:00
var publicApi = typeof(Recorder).Assembly.GeneratePublicApi(new ApiGeneratorOptions { ExcludeAttributes = new[] { "System.Runtime.Versioning.TargetFrameworkAttribute" } });
return Verifier.Verify(publicApi);
}
}
}