Files
octokit.net/Octokit.Tests/Exceptions/TwoFactorRequiredExceptionTests.cs
aedampir@gmail.com d0c8e82453 Red Tests were fixed
Unused 'using' directive were removed.
2016-04-18 12:46:13 +07:00

24 lines
658 B
C#

using System.Collections.Generic;
using System.Net;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests.Exceptions
{
public class TwoFactorRequiredExceptionTests
{
public class TheCtor
{
[Fact]
public void SetsDefaultMessage()
{
var response = new Response(HttpStatusCode.Unauthorized, null, new Dictionary<string, string>(), "application/json");
var exception = new TwoFactorRequiredException(response, TwoFactorType.Sms);
Assert.Equal("Two-factor authentication code is required", exception.Message);
}
}
}
}