Virtual PC's Differencing Disks#

I love Virtual PC, and I use if for all of my development.  I have a ton of VPC's just sucking up MAJOR disk space. I ran across and article from Andrew ConnellHOWTO: Use Virtual PC's Differencing Disks to your Advantage.  I wish I would have known about that feature a few years ago...

Friday, January 13, 2006 11:35:51 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

ExpectedException might not be what you've expected#

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 would look like the following:

[TestMethod, ExpectedException( typeof ( ApplicationException ) ) ]
public void ut1()
{
   throw new ApplicationException();
}

[TestMethod, ExpectedException( typeof( ApplicationException ), "foo" )]
public void ut2()
{
   throw new ApplicationException("bar");
}

You would naturally expect test ut1 to pass and ut2 to fail.  ut2 should fail on the bases that the message contained within the exception was in fact different.  Not true.  Both actually pass and not because of a bug but rather a new feature introduced to the attribute.  The Message property is actually a message that prints out with the test when it fails; just like the optional message property you find on all of the Assert methods.

   Assert.IsTrue( false == true, "Developer put explanation if this test was to fail" );

That message will print with the output of the test like so:

Error 1 TestCase 'ExpectedExceptionTest.ExpectedException.ut3' failed: Assert.IsTrue failed. Developer put explanation if this test was to fail
at ExpectedExceptionTest.ExpectedException.ut3() in C:\MyPrograms\ExpectedException\ExpectedExceptionTest\ExpectedException.cs:line 26 C:\MyPrograms\ExpectedException\ExpectedExceptionTest\ExpectedException.cs 26 

Lets correct ut2:

[TestMethod, ExpectedException( typeof( ApplicationException ), "I failed because I am looking for the wrong excpeption type" )]
public void newUt2()
{
   throw new Exception( "foobar" );
}

This will in fact fail because the Exception type thrown was different.  When it fails we will see that message in the output.

Having said all that, there is in fact a bug.  When you run a test with that ExpectedException attribute in Visual Studio you will not see the message on the failure output; if you run it in MSTest.exe you will.

ExpectedException.cs (.75 KB)

Friday, January 13, 2006 11:34:54 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Got Hacked, ARGHHHH!?!?!?#

I started to host my own servers about 6 years ago.  It started as a learning exercise and things have just evolved into a full time thing. 

I have both Linux and Windows running for a number of reasons.  Both are patched nightly and I do my best to run both platforms as any enterprise shop would ( with the resources I can afford ).

Having said that my Linux machine was compromised causing me a great deal of pain and frustration. Things are almost back to normal.

Just don't ever forget the Internet is the wild wild west.

Friday, January 06, 2006 11:03:54 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Merry Christmas#

Wishing you and your family a safe and happy holiday!

Merry Christmas

Sunday, December 25, 2005 7:47:38 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Outsourcing Santa?#

I couldn't resist it's just too funny.  There is one disclaimer; I actually think outsourcing is a great thing when used properly.

 

Tuesday, December 13, 2005 7:17:18 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Konfabulator Widgets#

I have been using Konfabulator for about a year now and yesterday I realized there were over a thousand Widgets in their gallery.  I thought I would share the list of widgets I use ( in random order ):

  1. SiteWatcher_3
  2. Lazy Launcher
  3. Battery ( Built-In )
  4. WiFi Signal ( Built-In )
  5. The Weather ( Built-In )
Friday, December 09, 2005 11:08:27 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

local.live.com#

Yesterday Microsoft lauched their beta of Virtual Earth.  Why should you go look?  One answer, their Birds Eye View. 

I am really digging the Vegas strip

Friday, December 09, 2005 7:39:21 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Konfabulator Is Now Free#

I have been a fan of this product for some time now.  Recently Yahoo acquired Konfabulator and it looks like it's now free.  http://www.konfabulator.com/

Friday, November 25, 2005 8:58:36 PM (Central Standard Time, UTC-06:00) #    Comments [1]  | 

 

Convert Your Code to HTML#

Nice little web utility to convert your code into HTML http://puzzleware.net/codeHTMLer/

Friday, November 25, 2005 8:40:10 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Moved to DasBlog#

If was finally time to move off of WordPress and onto DasBlog.  Why you ask? 

  1. .Net based!
  2. Rich text editior. I finally can display code as code should look.
  3. Overall it's just a better blogging application, simple, easy and looks nice!

Installation is CAKE.  It took me about 3 mintues to get it up and running!  Exactly the way an application should install.

 

Thursday, November 24, 2005 10:17:25 PM (Central Standard Time, UTC-06:00) #    Comments [1]  | 

 

All content © 2010, Clark Sell
On this page
This site
Calendar
<January 2006>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 2.3.9074.18820

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: