Question
TDD with VS The purpose of this assignment is to experience TDD using unit testing tools in VS. You are given a walkthrough of using
TDD with VS
The purpose of this assignment is to experience TDD using unit testing tools in VS. You are given a walkthrough of using unit tests to develop a method of a class. Also you are given an article that takes issue with TDD and you are required to discuss the it in the group and write conclusions -- it's not so much about a right/wrong answer than an intelligent discussion of merits/demerits of TDD as per your point of view. (If you don't agree for any or all particulars as a group, you are encouraged to say so).
Due
Complete this assignment in class in groups of two at most. Answer the questions on the last page. Sign last page and hand it in before you leave the lab session. Upload the class work in eCentennial.
Marks
The assignment is marked out of 10.
Walkthrough: Using Unit Tests to Develop a Method
This walkthrough demonstrates how to develop a tested method in C# using the Microsoft Unit Test framework. You can easily adapt it for other languages, and to use other test frameworks such as NUnit. For more information, seeUsing Different Test Frameworks.
Creating the Test and Method
- Create a Visual C# Class Library project. This project will contain the code that we want to deliver. In this example, it is named MyMath.
- Create a Test project.
- In the New Project dialog, choose Visual C#, Test and then choose Unit Test Project.
UnitTest1.cs X Class1.cs* UnitTestProject1.UnitTestl using System; Lusing Microsoft.Visual Studio. Test Tools.UnitTesting; namespace UnitTestProject1 -0 TestMethod1() [TestClass] public class Unit Testl ( [TestMethod] public void TestMethodl() } III SOLUTION EXPLORER t Search Solution Explorer (Ctrl+:) P Solution 'MyMath' (2 projects) MyMath Properties References Class1.cs UnitTestProject1 >> Properties > References UnitTest1.cs **
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started