All Questions
2 questions
8votes
8answers
5kviews
Unit test which asserts that current thread is the main thread
The question is does it make sense to write a unit test which asserts that the current thread is the main thread? Pros/cons? Recently I've seen the unit test which asserts the current thread for the ...
5votes
1answer
1kviews
Design Patterns to model complex decision graph
I am currently building a piece of code that creates side-effects based on input parameters. It has around ten input parameters and about six available side-effects. Based on the input parameters, the ...