Beispiel #1
0
        public void When__UserStore_Add_Claim__Expect__User_Param_Null_Exception()
        {
            Assert.ThrowsAsync(typeof(ArgumentNullException), async() =>
            {
                Claim claim = new Claim("Delete Log", "Yes");

                await _userStore.AddClaimAsync(null, claim).ConfigureAwait(false);
            }, "Exception not thrown");
        }