public void TestAddUserInvalidName([Values(null, "", "a b c", "씨엘씨", "micke~4213")] string username) { new Action(() => _repository.AddUser(username, "[email protected]", null)) .Should() .Throw <CannotAddUserException>(); DatabaseShouldBeEmpty(); }