dbones notes
its a geek thing

Using reflection to test for equality

February 9, 2008 00:33 by Dave
Lets say you want to do some TDD, as you may know that you have in some/most test an Expected answer and an Actual answer. In the case of the expected/actual being a value type or string its easy just to use: [code:c#] Assert.AreEqual<string> ("this is ex... [More]

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: dotNet | Test
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Method Overloading with Inheritance

February 5, 2008 18:19 by Dave
Here is a fun one.... read the following, and guess the output [code:c#] class Program {     static void Main(string[] args)     {         b test2 = new b();         a test1 = test2... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: dotNet
Actions: E-mail | Permalink | Comments (1) | Comment RSSRSS comment feed

A Text file test trace listener

February 4, 2008 22:29 by Dave
Testing your logging functionality, using the Enterprise library and a custom trace listener. As I was in need of a method to test some loggin functions, i googled away and found this exellent article <http://blogs.msdn.com/ploeh/archive/2006/04/06/ UnitTestYourEnterpriseLibraryLoggingLo... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: dotNet | Test
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Listing all the Public classes in an assembly

February 3, 2008 20:51 by Dave
You may have noticed I have the code on this blog highlighted, well i was looking into a way to highlight the classes as it does in visual studio 2005. As im restricted on the level of reflection i can actually do within the website. My next idea is can i create a list of the common classes I use.... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: dotNet
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed