示例#1
0
        public void When__UserStore_Is_In_Role__Expect__User_Param_Null_Exception()
        {
            Assert.ThrowsAsync(typeof(ArgumentNullException), async() =>
            {
                string roleName = "System Administrator";

                await _userStore.IsInRoleAsync(null, roleName).ConfigureAwait(false);
            }, "Exception not thrown");
        }