Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

  1. 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.

  1. Create a Test project.

  1. In the New Project dialog, choose Visual C#, Test and then choose Unit Test Project.

imageimageimageimageimage

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts In Federal Taxation

Authors: Kevin E. Murphy, Mark Higgins, Tonya K. Flesher

19th Edition

978-0324379556, 324379552, 978-1111579876

More Books

Students also viewed these Algorithms questions

Question

What does "per diem" mean in regards to salary for employment

Answered: 1 week ago

Question

Determine miller indices of plane X z 2/3 90% a/3

Answered: 1 week ago