c# - How to Count my pass fail test case and print at the end of execution -
i have multiple test cases , want write common method can count fail or pass test case , print total pass , fail test case @ end of execution.
instead of using class count total pass , fail cases, can implement method this:
int pass=0; int fail=0; for(int i=0;i<testcasescount;i++) { //read input using console.readline(); //check whether test case pass or fail , appropriately increment counter } //executed after loop i.e. test cases console.writeline(pass); console.writeline(fail);
Comments
Post a Comment