public void Delete_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(vk: new VkApi()); Assert.That(del: () => cat.Delete(messageIds: new ulong[] { 1 }, spam: false, deleteForAll: false), expr: Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Delete_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.Delete(new ulong[] { 1 }, false, false), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Delete_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.Delete(new ulong[] { 1 })).Throws <AccessTokenInvalidException>(); }
public void Delete_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); cat.Delete(new long[] { 1 }); }