Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Testing   (RSS)
Sorry, but there are no more tags available to filter with.
That blasted VSMDI file. Well Buck, Tom and crew did it. They have finally given us the ability to run tests ( albeit all ) found in an assembly regardless of test lists. http://blogs.msdn.com/buckh/archive/2006/11/04/how-to-run-tests-without-test-metadata-files-and-test-lists-vsmdi-files.aspx Read More...
Based on some conversations I had today, here is a simple NMock example. NMockExample.zip (17.19 KB) Read More...
Short answer. It's as simple as adding one line to your csproj which in turn tells the IDE to treat that project like a test project. Add the following line to your main PropertyGroup: <ProjectGuid>{04082EBA-C85C-4336-B3FD-9891096BAA0F}</ProjectGuid> Read More...
Mark Seemann recently published a great post demonstrating the use of anonymous methods in unit testing events. Testing Events Using Anonymous Methods That just rocks, thanks Mark! Read More...
If you are using TeamBuild then this post is for you. In TeamExplorer when you create a new build type it will create a *.proj file. During the creation of this build type, you will be asked which TestLists you would like executed in that build type. Read More...
While you cannot validate you exception's message in the ExpectedException attribute all is not lost. Lets walk through three scenarios. In all three tests you will see an Assert.Fail in the try block. You need this statement in case the target doesn't Read More...
If you've switched from NUnit to the VSTS Unit Testing then I am pretty sure you've used the ExpectedException attribute. If you haven't it looks something like this: [ExpectedException( typeof ( ApplicationException ), "Message" )] Using it with a test Read More...
Stumbled across a command line tool ( MSTest ) which executes your VSTS test list. You can call if from a Visual Studio command prompt or @ C:\Program Files\Microsoft Visual Studio 8\Common7\IDE Upon execution this will create the same output as if you Read More...
 
Page view tracker