public void Test_TraktAuthenticationDeviceException_DefaultConstructor()
        {
            const string message = "exception message";

            var exception = new TraktAuthenticationDeviceException(message);

            exception.Message.Should().Be(message);
            exception.StatusCode.Should().Be(default(HttpStatusCode));
            exception.RequestUrl.Should().BeNullOrEmpty();
            exception.RequestBody.Should().BeNullOrEmpty();
            exception.Response.Should().BeNullOrEmpty();
        }
Example #2
0
        public void TestTraktAuthenticationDeviceExceptionBaseClass()
        {
            var exception = new TraktAuthenticationDeviceException("");

            exception.Should().BeAssignableTo <TraktException>();
        }