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)")); }
public void Logout_throws_on_not_HTTP_OK() { Assert.That(() => Logout(HttpStatusCode.NotFound), ExceptionsTest.ThrowsNetworkErrorWithMessage("NotFound (404)")); }