public void MarkAsRead_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.MarkAsRead(null), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void MarkAsRead_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(vk: new VkApi()); Assert.That(del: () => cat.MarkAsRead(messageIds: new List <long> { 1 }, peerId: null), expr: Throws.InstanceOf <AccessTokenInvalidException>()); }
public void MarkAsRead_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.MarkAsRead(1)).Throws <AccessTokenInvalidException>(); }
public void MarkAsRead_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); cat.MarkAsRead(1); }