public void GetDialogs_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; This.Action(() => cat.GetDialogs(1, out totalCount)).Throws <AccessTokenInvalidException>(); }
public void GetDialogs_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; int unreadCount; Assert.That(() => cat.GetDialogs(out totalCount, out unreadCount, 0, 201), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void GetDialogs_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.GetDialogs(new MessagesDialogsGetParams { Count = 0, Offset = 201 }), Throws.InstanceOf <AccessTokenInvalidException>()); }