Click here to Skip to main content
12,509,509 members (55,881 online)
Click here to Skip to main content

Stats

114.2K views
749 downloads
76 bookmarked
Posted

Visual Studio 2005 Unit Testing Code Snippets

, 23 Feb 2006
In this article, I will be introducing Unit Testing Code Snippets, showing you how to add a Code Snippet in your page, and how to quickly navigate and modify the Unit Testing snippets to give you the ability to quickly create test methods and fixtures.
testmethod.jpg
codesnippetsmanager.jpg
CreatedCodeSnippet.jpg
invokefull.jpg
keyboard.jpg
selectsnippetfolder.jpg
Test Driven Development
NUnit
Assertions
Comparisons
assert.greater.snippet
assert.less.snippet
Condition
assert.isempty.snippet
assert.isfalse.snippet
assert.isnan.snippet
assert.isnotempty.snippet
assert.isnotnull.snippet
assert.isnull.snippet
assert.istrue.snippet
Equality
assert.areequal.snippet
assert.arenotequal.snippet
Identity
assert.arenotsame.snippet
assert.aresame.snippet
assert.contains.snippet
String
stringassert.areequalignoringcase.snippet
stringassert.contains.snippet
stringassert.endswith.snippet
stringassert.startswith.snippet
Type
assert.isassignablefrom.snippet
assert.isinstanceoftype.snippet
assert.isnotassignablefrom.snippet
assert.isnotinstanceoftype.snippet
Utility
assert.fail.snippet
assert.ignore.snippet
Attributes
category.snippet
expectedexception.snippet
explicit.snippet
ignore.snippet
platform.snippet
testattribute.snippet
testfixtureattribute.snippet
testfixturesetupattribute.snippet
testfixtureteardownattribute.snippet
testsetupattribute.snippet
testteardownattribute.snippet
Code Fragments
class.snippet
fixture.snippet
fixturesetup.snippet
fixtureteardown.snippet
full.snippet
method.snippet
setup.snippet
teardown.snippet
VisualStudio.UnitTesting
Assertions
Collection
collectionassert.allitemsareinstancesoftype.snippet
collectionassert.allitemsarenotnull.snippet
collectionassert.allitemsareunique.snippet
collectionassert.areequal.snippet
collectionassert.areequivalent.snippet
collectionassert.arenotequal.snippet
collectionassert.arenotequivalent.snippet
collectionassert.contains.snippet
collectionassert.doesnotcontains.snippet
collectionassert.isnotsubsetof.snippet
collectionassert.issubsetof.snippet
Condition
assert.isfalse.snippet
assert.isnotnull.snippet
assert.isnull.snippet
assert.istrue.snippet
Equality
assert.areequal.snippet
assert.arenotequal.snippet
generic.assert.areequal.snippet
generic.assert.arenotequal.snippet
Identity
assert.arenotsame.snippet
assert.aresame.snippet
generic.assert.arenotsame.snippet
generic.assert.aresame.snippet
String
stringassert.contains.snippet
stringassert.doesnotmatch.snippet
stringassert.endswith.snippet
stringassert.matches.snippet
stringassert.startswith.snippet
Type
assert.isinstanceoftype.snippet
assert.isnotinstanceoftype.snippet
Utility
assert.fail.snippet
assert.inconclusive.snippet
Attributes
agentproperty.snippet
assemblycleanup.snippet
assemblyinitialize.snippet
classcleanup.snippet
classinitialize.snippet
cssiteration.snippet
cssprojectstructure.snippet
datasource.snippet
deploymentitem.snippet
description.snippet
expectedexception.snippet
hosttype.snippet
ignore.snippet
owner.snippet
priority.snippet
testclass.snippet
testcleanup.snippet
testinitialize.snippet
testmethod.snippet
testproperty.snippet
workitem.snippet
Code Fragments
class.snippet
classcleanup.snippet
classinitialize.snippet
full.snippet
method.snippet
testclass.snippet
testcleanup.snippet
testinitialize.snippet

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Maruis Marais
Web Developer
New Zealand New Zealand
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160927.1 | Last Updated 23 Feb 2006
Article Copyright 2006 by Maruis Marais
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid