wabbajack/Wabbajack.Test/MetricsTests.cs
2021-05-17 16:37:01 -06:00

30 lines
654 B
C#

using System;
using System.Threading.Tasks;
using Wabbajack.Common;
using Wabbajack.Lib;
using Xunit;
namespace Wabbajack.Test
{
public class MetricsTests
{
[Fact]
public async Task CanSendExceptions()
{
foreach (var mode in new[] {true, false})
{
Consts.UseNetworkWorkaroundMode = mode;
try
{
throw new Exception("Test Exception");
}
catch (Exception ex)
{
await Metrics.Error(this.GetType(), ex);
}
}
}
}
}