JSTest.NET from Nuget integration with MS Test Series Part 2

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:

  1. Actual JavaScript file which contains the production code.
  2. JavaScript Test file which contains the test methods.
  3. JavaScriptTestBase.cs is a helper class for writing better MS Test.
  4. 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

Leave a comment