public void Test_TraktFailedVIPValidationException_DefaultConstructor() { var exception = new TraktFailedVIPValidationException(); exception.Message.Should().Be("VIP Only - authorized user does not have VIP support"); exception.StatusCode.Should().Be((HttpStatusCode)426); exception.RequestUrl.Should().BeNullOrEmpty(); exception.RequestBody.Should().BeNullOrEmpty(); exception.Response.Should().BeNullOrEmpty(); }
public void Test_TraktFailedVIPValidationException_Constructor() { const string message = "exception message"; var exception = new TraktFailedVIPValidationException(message); exception.Message.Should().Be(message); exception.StatusCode.Should().Be((HttpStatusCode)426); exception.RequestUrl.Should().BeNullOrEmpty(); exception.RequestBody.Should().BeNullOrEmpty(); exception.Response.Should().BeNullOrEmpty(); }