World of .NET

The World of .NET covers practical .NET enterprise application development.

Podcast #2
Published 08/21/2008 21:00 by jessyhoule

Below are the show notes for the World of .NET podcast #2:


TECHNICAL SEGMENT (Unit Testing)


Unit Testing Frameworks
NUnit Test Runner Clients
Most used NUnit Attributes:
TestFixture
This is the attribute that marks a class that contains tests and, optionally, setup or teardown methods.

TestFixtureSetUp
This attribute is used inside a TestFixture to provide a single set of functions that are performed once prior to executing any of the tests in the fixture. A TestFixture can have only one TestFixtureSetUp method. If more than one is defined the TestFixture will compile successfully but its tests will not run.

TestFixtureTearDown
This attribute is used inside a TestFixture to provide a single set of functions that are performed once after all tests are completed. A TestFixture can have only one TestFixtureTearDown method. If more than one is defined the TestFixture will compile successfully but its tests will not run.

Test
The Test attribute marks a specific method inside a class that has already been marked as a TestFixture, as a test method. For backwards compatibility with previous versions of Nunit a test method will also be found if the first 4 letters are "test" regardless of case.


Sometimes used NUnit Attributes:
Setup
This attribute is used inside a TestFixture to provide a common set of functions that are performed just BEFORE EACH TEST METHOD IS CALLED. A TestFixture can have only one SetUp method. If more than one is defined the TestFixture will compile successfully, but its tests will not run.

TearDown
This attribute is used inside a TestFixture to provide a common set of functions that are performed after each test method is run. A TestFixture can have only one TearDown method. If more than one is defined the TestFixture will compile successfully, but its tests will not run.

Ignore
The ignore attribute is an attribute to not run a test or test fixture for a period of time. The person marks either a Test or a TestFixture with the Ignore Attribute. The running program sees the attribute and does not run the test or tests.


Most used NUnit Assertions:
 Equality Asserts
   - Assert.AreEqual(expected, actual, {string message});

 Conditional Asserts
   - Assert.IsTrue(condition, {string message});
   - Assert.IsNotNull(object, {string message});


Free Chapter from the book (The art of Unit Testing by Roy Osherove)
Chapter 1 – The basics of unit testing

TOOL TIP (Araxis)

Araxis

DEVELOPER TIP (Using MS Test with just a few Using Statements)

Using MS Test with just a few Using Statements

SUGGESTED READING (Head First Design Patterns)

Head First Design Patterns book at Amazon (4 1/2 stars)
C# codebase for the Head First Design Patterns book

Podcast #1
Published 08/21/2008 18:40 by jessyhoule

Below are the show notes for the first World of .NET podcast:


TECHNICAL SEGMENT (CSLA)

CSLA Framework Home
CSLA Framework Download
CSLA Books

TOOL TIP (ReSharper)

ReSharper Download
ReSharper Documents and Demos
ReShaper Book (Power Programming with ReSharper)

DEVELOPER TIP (Using C# 3.0 (.Net 3.5) syntax in a .Net 2.0 application)

Using C# 3.0 syntax in a .NET 2.0 apps article

SUGGESTED READING (Domain Driven Design)

Domain Driven Design book at Amazon (4 1/2 stars)

Archive

About the authors

Jeff Diercks Photo
Jeff Diercks
Jeff Diercks is a consultant for ILM Professional Services. He is a developer, architect and MCSD who has been designing and developing business systems over 10 years. Jeff has fully embraced his nerdiness, and likes to spend his spare time keeping up to date with the latest machinations emanating from the alt.net community and battling monsters with his druidic night elf in World of Warcraft.
Jessy Houle Photo
Jessy Houle
Jessy Houle is an independent consultant representing Minnesota. He is a web developer, and MCSD (C# track), loves long romantic nights where he dabbles at the nuts and bolts level of programming. Jessy loves the front-end, most specifically Silverlight, and finally loves to tease Jeff about playing video games :-)
Vince Bullinger Photo
Vince Bullinger
Vince Bullinger is a .Net developer at Explore Information Services with five years of experience as a developer and consultant in such diverse fields as insurance, health care, custom content management systems and e-commerce, among others. He is a Microsoft Certified Solutions Developer. He's the treasurer of TechMasters, an IT-based ToastMasters chapter. In his spare time, he pays too much attention to sports and can frequently be found at the Silverlight User Group, the .Net User Group, Developer's Guild, Code Camp and any worthwhile conference that comes to town.

Blogroll

Disclaimer

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