public void Test_TraktMethodNotFoundException_DefaultConstructor() { var exception = new TraktMethodNotFoundException(); exception.Message.Should().Be("Method Not Found - method doesn't exist"); exception.StatusCode.Should().Be(HttpStatusCode.MethodNotAllowed); exception.RequestUrl.Should().BeNullOrEmpty(); exception.RequestBody.Should().BeNullOrEmpty(); exception.Response.Should().BeNullOrEmpty(); }
public void Test_TraktMethodNotFoundException_Constructor() { const string message = "exception message"; var exception = new TraktMethodNotFoundException(message); exception.Message.Should().Be(message); exception.StatusCode.Should().Be(HttpStatusCode.MethodNotAllowed); exception.RequestUrl.Should().BeNullOrEmpty(); exception.RequestBody.Should().BeNullOrEmpty(); exception.Response.Should().BeNullOrEmpty(); }
public void TestTraktMethodNotFoundExceptionBaseClass() { var exception = new TraktMethodNotFoundException(); exception.Should().BeAssignableTo <TraktException>(); }