![microsoft visual studio 2010 testing tools microsoft visual studio 2010 testing tools](https://slideplayer.com/slide/14543840/90/images/3/Architecture+Explorer+Test+Record+%26+Playback.jpg)
If Expected meets the Actual then your Test Case has Passed, otherwise your Test Case has Failed. Actual: When you perform the test what your result is.Expected: Before we really perform a test our test case tells us what to expect by this test case to verify success in the case of a Sum taking two ints, we expect it to return the exact result of adding the two numbers.Irrespective of what Unit Test tool and development technology you use, the test process depends on the following two things:
#Microsoft visual studio 2010 testing tools how to
How to approach Test Automation in general If argument passed is negative then throw an exception.If argument passed is 0 "zero" then throw an exception.If argument is positive and non-zero then return the sum of the passed arguments.the parameters passed are also being validated for all the possible test scenarios: To do so, instead of relying on a Manual Test Process through a UI that will be very cumbersome and tedious to continuously test the sanity of the business logic, we can choose to automate this test process.Īs you might have noticed, we have written the Sum function (in MathLibrary.dll) in a Test Driven style i.e. Since it is a DLL component, test coverage of this is very critical to ensure that business logic is intact and returning correct results. Throw new ArgumentException( "No Zero or Negative are allowed") The source code of this MathLibrary business logic component is as in the following: I have business logic that does some math's calculation and is available in the DLL MathLibrary.dll. Framework is an architectural term and it means "collection of components".Ĭode Example of Test Automation using Microsoft Visual Studio 2010 Let's first understand what a framework is. NET has its own UnitTest framework that is separate from the NUnit or other automation testing frameworks.