This is part 2 of 6 posts, you can find the previous post here.
Structural Overview of different component & its role:
Below mentioned are different component of Tests:
- Actual JavaScript file which contains the production code.
- JavaScript Test file which contains the test methods.
- JavaScriptTestBase.cs is a helper class for writing better MS Test.
- Actual MS Test file to run the test mentioned in JavaScript file.
Example of sample function of JavaScript is
function returnSumOfTwoNumber() { assertEqual(3, Add(1,2)); }
Other points will be explained in following post, read Part 3 here.
2 comments