Hello all :)
So i have a class with three methods , main() , construct(), & calc() .
I wrote a test class and in there set up unit tests for all of the branches in calc() & one additional test for the construct method. And with that leaving me with a point to how to test the main method?
In there I have just basic code.
So this is maybe dumb but any suggestions on how to test this class without duplicating the code from the test method for calc?
public static void main(Args _args)
{
ProcessClass obj = ProcessClass::construct();
obj.calc(_args);
}