This chapter is about unit testing, which is a very developer-centric type of test.…Let me start with my definition of a unit test.…A unit test is an automated chunk of code that calls a class or a method and…verifies that our assumptions about the behavior of the code under test are correct.…Unit tests are commonly written using a unit testing framework.…They should always be automated and easily accessible.…Anyone on your team should be able to run the unit tests at anytime to verify…that the code under test is working, and that no one has broken the build.…Let's look at the unit testing tools inside Visual Studio.…
I am going to be working with this project called WorkingWithUnitTests.…First, let me show you the code I am going to test.…It's inside this Book class…Double-click on the Book class and you'll see that this class has one property…called Title, one property with a getter and a setter, and a property called…Price, and then I have two methods:…UpdatePrizeByPercent and SaveBook.…
Author
Released
11/16/2010- Creating a Visual Studio project
- Building the user interface
- Binding to an RSS feed
- Coding with IntelliSense
- Creating rich Internet applications with Silverlight
- Building Windows applications with Windows Forms
- Integrating with SQL Server
- Working with Microsoft Office applications
- Understanding extensibility in Visual Studio
- Working with data, ADO.NET and datasets
- Using source control
Skill Level Intermediate
Duration
Views
Q: Which edition of Visual Studio 2010 do I need to follow along in this course?
A: The course is taught with Visual Studio 2010 Professional, but can also be used with the Premium or Ultimate editions. The Express editions of Visual Studio, including Visual Basic 2010 Express, Visual C# 2010 Express, and Visual C++ Express, are not covered in this course.
Q: I'm attempting to download the exercise files for this course, and my virus protection is blocking me from unzipping the downloaded file. Are the files corrupted?
A: The alert is a false-positive message. Your antivirus software is detecting the active code included in the exercise files, which in some ways resembles viral code. There is nothing to be alarmed about and you can ignore the warning. This is common among coding courses and environments.
-
Introduction
-
Welcome58s
-
Using the exercise files1m 1s
-
-
1. Getting Started
-
2. Exploring the Visual Studio Workspace (IDE)
-
Working with big projects3m 53s
-
Setting options for the IDE5m 56s
-
3. Building a Simple Application
-
Connecting your data8m 4s
-
Binding to an RSS feed5m 4s
-
4. Exploring the Code Editors
-
Writing a C# program6m 48s
-
Writing a VB program6m 29s
-
Working with C++6m 38s
-
Working with F Sharp6m 9s
-
Font and color options6m 50s
-
5. Working with Code
-
Formatting your code6m 43s
-
Navigating your code7m 44s
-
Using the Task List2m 26s
-
Commenting your code2m 45s
-
Documenting your code8m 26s
-
Working with code snippets6m 25s
-
Refactoring your code5m 15s
-
Generating code with T46m 29s
-
-
6. Understanding the Project Types
-
Creating a class library6m 26s
-
Creating a WCF service9m 1s
-
7. Digging Into Your Data
-
Creating typed datasets7m 55s
-
Using the data binding tools8m 38s
-
8. Debugging Your Application
-
Debugging code9m 32s
-
Other debugging techniques6m 50s
-
-
9. Testing Your Application
-
10. Deploying Your Application
-
Building your application4m 19s
-
Setting assembly information2m 12s
-
-
11. Working with Source Control
-
12. Integrating with Microsoft Office Applications
-
Making an Excel 2010 add-in5m 21s
-
13. Extending Visual Studio
-
Creating macros7m 16s
-
Creating an MEF add-in7m 9s
-
14. Configuring Your Application
-
Using the Settings Editor7m 29s
-
Using the Resources Editor6m 59s
-
Localizing your resources5m 28s
-
Conclusion
-
Goodbye1m 17s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Verifying your code with unit tests