Ejemplo n.º 1
0
                public async Task NullEmail_Throws()
                {
                    UserHelper helper = new FakeUserHelper1();

                    await Assert.ThrowsAsync <ArgumentNullException>("email", async() =>
                    {
                        await helper.SetEmail(
                            user: new User(),
                            email: null);
                    });
                }
Ejemplo n.º 2
0
                public async Task NullUser_Throws()
                {
                    UserHelper helper = new FakeUserHelper1();

                    await Assert.ThrowsAsync <ArgumentNullException>("user", async() =>
                    {
                        await helper.SetEmail(
                            user: (User)null,
                            email: "*****@*****.**");
                    });
                }