public void CreateChat_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(vk: new VkApi()); Assert.That(del: () => cat.CreateChat(userIds: new ulong[] { 1, 2 }, title: "hi, friends"), expr: Throws.InstanceOf <AccessTokenInvalidException>()); }
public void CreateChat_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.CreateChat(new ulong[] { 1, 2 }, "hi, friends"), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void CreateChat_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.CreateChat(new ulong[] { 1, 2 }, "hi, friends")).Throws <AccessTokenInvalidException>(); }
public void CreateChat_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); cat.CreateChat(new long[] { 1, 2 }, "hi, friends"); }