Exemple #1
0
        public void GetBlob_throws_on_not_HTTP_OK()
        {
            var http = SetupGet(HttpStatusCode.NotFound, new byte[0]);

            Assert.That(() => Client.GetBlob(TestData.Username, Session, http.Object),
                        ExceptionsTest.ThrowsNetworkErrorWithMessage("NotFound (404)"));
        }
Exemple #2
0
 public void Logout_throws_on_not_HTTP_OK()
 {
     Assert.That(() => Logout(HttpStatusCode.NotFound),
                 ExceptionsTest.ThrowsNetworkErrorWithMessage("NotFound (404)"));
 }