Advantages of using unit-test frameworks.
Unit-testing frameworks are code libraries and modules that help developers unit-test their code.
The unit testing framework provides a class library that holds base classes or interfaces to inherit. It also has attributes to place in your code to annotate your tests to run and assert classes that have special assert methods you invoke to verify your code.
Unit testing frameworks provides a test runner (a console or GUI tool) that identifies tests in your code, runs tests automatically. The test runner also indicates status while running and can be automated by command line.
The test-runners will usually provide information such as
• how many tests ran.
• how many tests didn’t run.
• how many tests failed.
• which tests failed.
• the reason tests failed.
• the ASSERT message you wrote.
• the code location that failed.
• possibly a full stack trace of any exceptions that
caused the test to fail, and will let you go to the various
method calls inside the call stack.
Filed Under: C# ASP.NET