public void DeleteDialog_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.DeleteDialog(111), Throws.InstanceOf <AccessTokenInvalidException>()); }