public void Set_TextIsNull_ThrowArgumentNullException() { var status = new StatusCategory(new VkApi { AccessToken = "token" }); This.Action(() => status.Set(null)).Throws <ArgumentNullException>(); }
public void Set_TextIsNull_ThrowArgumentNullException() { var status = new StatusCategory(new VkApi { AccessToken = "token" }); status.Set(null); }
public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var status = new StatusCategory(new VkApi()); This.Action(() => status.Set("test")).Throws <AccessTokenInvalidException>(); }
public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var status = new StatusCategory(new VkApi()); Assert.That(() => status.Set("test"), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var status = new StatusCategory(new VkApi()); status.Set("test"); }
public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var status = new StatusCategory(vk: new VkApi()); Assert.That(del: () => status.Set(text: "test"), expr: Throws.InstanceOf <AccessTokenInvalidException>()); }