public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; This.Action(() => cat.Get(MessageType.Received, out totalCount)).Throws <AccessTokenInvalidException>(); }
public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; Assert.That(() => cat.Get(MessageType.Received, out totalCount), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.Get(new MessagesGetParams { }), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(vk: new VkApi()); Assert.That(del: () => cat.Get(@params: new MessagesGetParams()), expr: Throws.InstanceOf <AccessTokenInvalidException>()); }