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.

Advertisement

2 comments

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: