mirror of
https://github.com/bitwarden/server.git
synced 2024-12-11 15:17:44 +01:00
19 lines
434 B
C#
19 lines
434 B
C#
|
using Bit.Core.Exceptions;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
using static Bit.Core.Billing.Utilities;
|
|||
|
|
|||
|
namespace Bit.Core.Test.Billing;
|
|||
|
|
|||
|
public static class Utilities
|
|||
|
{
|
|||
|
public static async Task ThrowsContactSupportAsync(Func<Task> function)
|
|||
|
{
|
|||
|
var contactSupport = ContactSupport();
|
|||
|
|
|||
|
var exception = await Assert.ThrowsAsync<GatewayException>(function);
|
|||
|
|
|||
|
Assert.Equal(contactSupport.Message, exception.Message);
|
|||
|
}
|
|||
|
}
|