public void EnsuresNonEmptyLogin() { var connection = Substitute.For <IApiConnection>(); var client = new TeamsClient(connection); Assert.ThrowsAsync <ArgumentException>(() => client.GetMembership(1, "")); }
public async Task EnsuresNonNullLogin() { var connection = Substitute.For <IApiConnection>(); var client = new TeamsClient(connection); await Assert.ThrowsAsync <ArgumentNullException>(() => client.GetMembership(1, null)); }
public void EnsuresNonEmptyLogin() { var connection = Substitute.For<IApiConnection>(); var client = new TeamsClient(connection); Assert.ThrowsAsync<ArgumentException>(() => client.GetMembership(1, "")); }