Quantcast
Channel: VSTSCode Release Rss Feed
Viewing all articles
Browse latest Browse all 14

UPDATED RELEASE: Section 5 - Chapter 13 (v1.0.0.0) (May 04, 2007)

$
0
0
TDD in C# without tools This exercise aims to convince you that there is nothing fundamentally difficult about Test-First Programming (or TDD). It contains the sort of code you might write when you're learning to program in C# and doesn't require the use of any special tools. The code you will develop acheives the following: * setting-up a simple test harness to run your tests * creating a test adapter to initialise the code under test and then execute your test cases against it * writing a simple test case * implementing the code to pass the test (code under test) * refactoring the code to improve your code Instructions: * Download the file and extract into a directory on your hard disk * Open the Visual Studio Solution (File - Open - Project Solution) * Build the Solution (Build - Rebuild Solution) * Run the program (Debug - Start without Debugging) When you run the program a command prompt window opens prompting you to 'press a key to continue'. When you press a key the window closes and the program terminates. However, if you change the code so that the test fails an 'assert' message appears.

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>