Пример #1
0
            public void EnsuresNonEmptyLogin()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new TeamsClient(connection);

                Assert.ThrowsAsync <ArgumentException>(() => client.GetMembership(1, ""));
            }
Пример #2
0
            public async Task EnsuresNonNullLogin()
            {
                var connection = Substitute.For <IApiConnection>();
                var client     = new TeamsClient(connection);

                await Assert.ThrowsAsync <ArgumentNullException>(() => client.GetMembership(1, null));
            }
Пример #3
0
            public void EnsuresNonEmptyLogin()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new TeamsClient(connection);

                Assert.ThrowsAsync<ArgumentException>(() => client.GetMembership(1, ""));
            }