Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

All Blogs

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Search

XML Feeds

Google Ads

Tags: nunit

comments

.Net 4 And Nunit

by chrissie1 on May 28, 2010 in categories Microsoft Technologies
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Today I decided it was time to set some of my projects to use .Net 4 instead of .Net 3.5 and I felt the pain.

First, I had some trouble with my barcodereader framework which was built for .Net 1.1. No problem, I quickly changed it over with another framework I like better and which is built for .Net 4.0.

Then I committed and I broke the built :-(. The test projects I had converted to .net 4.0. would not build anymore.

System.BadImageFormatException: Could not load file or assembly 'C:\Visual studio projects\TDB2009\Projects\TDB2009.View.Menu.TestC\bin\De...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

I was running into this error when running my Nunit-tests.

Executing : C:\Program Files\NUnit 2.5.2\bin\net-2.0\nunit-console.exe

With Command Line : TDB2009.View.Test.C.dll

NUnit version 2.5.2.9222

Copyright (C) 2002-2009 Charlie Poole.

Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.

Copyright (C) 2000-2002 Philip Craig.

All Rights Reserved.

Runtime Environment -

OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2

CLR Version: 2.0.50727.3...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

In some cases, you want to have a file in your Startupfolder that you want to access from within your application. Perhaps an XML-file with application settings or an image that can be changed.

In most cases the application startuppath will be in program files so you don't really want to put too much stuff in there but from time to time, you might.

And I always like to test if the pesky file is configured right, so that it appears as a file in that folder.

For example, if I have an image that has this as a path:

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Like the title says An nUnit testfixture file template for resharper that also conforms to stylecop laws. Here it is.

csharp Sample Code (See Article for Rest)
Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Life can be so simple sometimes but you just have to think about it.

I found it very cool when Sean Feldman posted this CategoryAttribute. Yeah I know the title doesn't say everything and the post iskinda short but very sweet to me. More DRYness to play with.

Now let me translate his post into VB.Net.

How not to do it.

vbnet Sample Code (See Article for Rest)
Read More...

:: Next >>