I have an onsite Monday with Microsoft and I heard they love test cases. I work somewhere that practices TDD, but writing out unit tests during an onsite feels like it would take too long. How do you usually handle testing in a coding interview? Could you just say "when writing my test cases, I would test X, Y, and Z cases" or write out a whole test suite?
I did TDD in my Microsoft interview an I got selected because of that
So you wrote out the test cases first? Or just mentioned how you'll test? Did you feel like it took too much time?
Two column table. Left side input right side expected output. Add values before you get started with a solution -- be sure to identify edge-case inputs here. Then use them to step through your solution as you go to make sure your solution conceptually arrives at the expected output.
Just mention them