mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-23 15:45:28 +00:00
Right now, our exception messages come from the API response in most cases. But if for any reason there isn't one, we supply a default. I realized these messages might make it to people's logs so it might be nice to spend time later making them even more useful.
19 lines
457 B
C#
19 lines
457 B
C#
using Xunit;
|
|
|
|
namespace Octokit.Tests.Exceptions
|
|
{
|
|
public class TwoFactorChallengeFailedExceptionTests
|
|
{
|
|
public class TheConstructor
|
|
{
|
|
[Fact]
|
|
public void SetsDefaultMessage()
|
|
{
|
|
var exception = new TwoFactorChallengeFailedException();
|
|
|
|
Assert.Equal("The two-factor authentication code supplied is not correct", exception.Message);
|
|
}
|
|
}
|
|
}
|
|
}
|