I am a newbie to unit testing. How do I check the for console output? I have
namespace XXShapes
{
public abstract class XXShape
{
public virt
The literal answer would be that you would use Console.SetOut
before calling the class under test to direct stdout
into a memoryStream or similar, whose contents you can later inspect.
The better answer would be to use a mocking framework, like Rhino Mocks to create a concrete instance of your abstract class, with an expectation set that the DrawXXShape
method would be called.