Numeric Sequence Calculator
- Download the Zip file
- Unzip it to a new or empty folder
- Open the "NumericSequenceWithTest.sln" solution (original source was created using Visual Studio 2013 Ultimate)
- The Solution has 3 projects. "NumericSequence", "NumericSequence.Tests" and "CodedUITestNumericSequence". Make sure that "NumericSequence" web project is selected as StartUp project.
- Rebuild the Solution
- Run the application (F5 or Ctrl +F5 to run without debuging)
- Enter a whole number in to the text box (next to label "Enter an integer") and press enter or hit the Show button. It must be 1 or greater than 1 in the text box.
Unit Tests
- Select Unit Test project "NumericSequence.Tests".
- Open "HomeControllerTest.cs". There are test methods for each function
- Right click on a function name and select "Run Test" (Ctrl + R+T). Function "GetCustomisedNumbers" writes output in to the console. Click on the "Output" link in the Test Explorer window.
UI Test
- Select "CodedUITestNumericSequence" project
- "CodedUITestMethod1" method in "ManualCodedUITest.cs" is written manually. Run the test by right clicking and selecting "Run Test"
- First run the web site using Ctrl + F5. Leave the browser window open.
- "ReCordedUITestMethod" method in the 'RecordedCodedUITest.cs" is recorded UI test. Run the test by right clicking and selecting "Run Test" on "ReCordedUITestMethod".