3 ms·
If you actually know all these myriad environmental factors, writing tests for them is no harder than for anything else. It could be a lot of work, of course,
by BurningFrog 12y ago
If you actually know all these myriad environmental factors, writing tests for them is no harder than for anything else.
It could be a lot of work, of course, but that just reflects that you're building a complex system.
Test 1: Look up AD prop with user credentials
Test 2: Look up AD prop when user credentials don't work
You'd almost certainly want to mock out the environment. Don't use the actual services.