public void GetChatUsers_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.GetChatUsers(new List <long>() { 2 }, null, null), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void GetChatUsers_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(vk: new VkApi()); Assert.That(del: () => cat.GetChatUsers(chatIds: new List <long> { 2 }, fields: null, nameCase: null), expr: Throws.InstanceOf <AccessTokenInvalidException>()); }
public void GetChatUsers_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.GetChatUsers(2)).Throws <AccessTokenInvalidException>(); }
public void GetChatUsers_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); cat.GetChatUsers(2); }