public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.Send(new MessageSendParams { UserId = 1, Message = "Привет, Паша!" })).Throws <AccessTokenInvalidException>(); }
public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.Send(new MessagesSendParams { UserId = 1, Message = "Привет, Паша!" }), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.Send(1, false, "Привет, Паша!")).Throws <AccessTokenInvalidException>(); }
public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); cat.Send(1, false, "Привет, Паша!"); }