|
|
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
1 Articles match "Throw","Unit Testing"
|
Related DevelopMentor Courses
|
MORE
|
|
Guerrilla.NET
idioms like iterator methods, the lambda operator, and extension methods Write code that works well with the garbage collector Handle and throw exceptions properly Work with Windows Presentation Foundation (WPF) and XAML Write browser applications using Silverlight Manage long-running processes with Windows Workflow Foundation (WF) Threading and Concurrency Scale your application to multicore machines using threads Debug difficult problems using WinDBG, SOS, and ADPLUS Understand how the.NET class libraries and the C# language are evolving in.NET 3.5 Use C# 3.0 and C# 4.0? and Dublin.
DevelopMentor Courses
- Friday, June 12, 2009
|
11 Articles match "Throw","Unit Testing"
|
The Latest from DevelopMentor
|
MORE
|
|
Mock Smells
Mocks let you test implementation. Since there are literally 1,000’s of way to program the exact same behavior, Unit tests that lock a particular implementation will actually in up “protecting” your code from being refactored. This smell tends to come up in newly written code, and is usually accompanied by the phrase “ anytime I want to change anything a bunch of tests break and I have to go and fix them”. Of course if your nose is prickling over some hard to test piece of code, grab your mocking framework. usually write my own mocks. agree with this.
Llewellyn Falco
- Saturday, January 16, 2010
Article: 10 Features in.NET 4.0 that made Me Smile
Code contracts allow you to assert truths about your code as if you are writing a unit test. Just throw out a service + contract + address and it’s up and running. I recently wrote another article for DevelopMentor 's Developments newsletter (not subscribed yet? see top-right of this page ). This one is entitled. 10 Features in.NET 4.0 that made Me Smile. Read it on the DevelopMentor website: [link]. am republishing it below for you all to enjoy on your RSS readers. Cheers, Michael. 10 Features in.NET 4.0 that made Me Smile. bet some of them make you smile too. ll wait.
Michael C. Kennedy's Weblog
- Wednesday, December 16, 2009
Article: 10 Features in.NET 4.0 that made Me Smile
Code contracts allow you to assert truths about your code as if you are writing a unit test. Just throw out a server + contract + address and it’s up and running. I recently wrote another article for DevelopMentor 's Developments newsletter (not subscribed yet? see top-right of this page ). This one is entitled. 10 Features in.NET 4.0 that made Me Smile. Read it on the DevelopMentor website: [link]. am republishing it below for you all to enjoy on your RSS readers. Cheers, Michael. 10 Features in.NET 4.0 that made Me Smile. bet some of them make you smile too. ll wait.
Michael C. Kennedy's Weblog
- Wednesday, December 16, 2009
|
-
|
The Best from DevelopMentor
|
MORE
|
-
Significant Advances in Unit Testing Windows Workflow
This post describes a unit testing library for testing Windows Workflow Foundations. Rather it's a library that can be used in conjunction with any of these testing frameworks. Download the library with sample test project here: Kennedy.WorkflowTesting.zip (216 KB). First a Little History: Last September I posted this teaser entitled Unit Testing Coming to a Workflow Near You. In that previous post, I highlighted what I could determine to be the current state-of-the-art with regard to unit testing workflows, circa September 2008.
Michael C. Kennedy's Weblog
- Sunday, January 18, 2009
-
Article: Avoiding 5 Common Pitfalls in Unit Testing
Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. Avoiding 5 Common Pitfalls in Unit Testing. When I started out with unit tests, I was enthralled with the promise of ease and security that they would bring to my projects. In practice, however, the theory of sustainable software through unit tests started to break down. Unit Tests have become more trouble than they are worth.". When tests would stop working, we just ignored them.
Michael C. Kennedy's Weblog
- Thursday, August 6, 2009
-
Article: Avoiding 5 Common Pitfalls in Unit Testing
Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. Avoiding 5 Common Pitfalls in Unit Testing. When I started out with unit tests, I was enthralled with the promise of ease and security that they would bring to my projects. In practice, however, the theory of sustainable software through unit tests started to break down. quot;Unit Tests have become more trouble than they are worth." Pitfall #1: Tests are hard to maintain.
-
Processing Text Files with LINQ
The full source code (with convenience overloads and unit tests) is available here. I was recently writing some code to stream through a large text file, processing the lines it found that matched a regular expression. Pretty boring stuff, so my mind started to wander and I started thinking about the loops I was writing and how I could replace them with LINQ. To demonstrate what I came up with, I thought I’d use some of the IMDB text files you can download containing way too much information about every movie ever made from here. Lost in Translation (2003). Value) >= 1300).Select(m
Jason Diamond
- Sunday, September 7, 2008
-
Using Excel for VSTS Data Driven Testing
A colleague of mine, Kev Jones , has posted some information on using a detached SQL Server database for driving VSTS unit tests which works great if you need a full blown SQL implementation. throw new ArgumentException( "count" ); torpedosLeft -= count; // Instruct bridge officer to "Fire!". The equivalent unit test might look something like: [TestMethod]. This code just tests a specific case -- I would also need to write other unit tests for edge cases and exceptional cases. The input for our unit test. torpedoCount.
-
Using Excel for VSTS Data Driven Testing
A colleague of mine, Kev Jones , has posted some information on using a detached SQL Server database for driving VSTS unit tests which works great if you need a full blown SQL implementation. throw new ArgumentException( "count" ); torpedosLeft -= count; // Instruct bridge officer to "Fire!". The equivalent unit test might look something like: [TestMethod]. This code just tests a specific case -- I would also need to write other unit tests for edge cases and exceptional cases. The input for our unit test. torpedoCount.
-
Article: 10 Features in.NET 4.0 that made Me Smile
Code contracts allow you to assert truths about your code as if you are writing a unit test. Just throw out a server + contract + address and it’s up and running. I recently wrote another article for DevelopMentor 's Developments newsletter (not subscribed yet? see top-right of this page ). This one is entitled. 10 Features in.NET 4.0 that made Me Smile. Read it on the DevelopMentor website: [link]. am republishing it below for you all to enjoy on your RSS readers. Cheers, Michael. 10 Features in.NET 4.0 that made Me Smile. bet some of them make you smile too. ll wait.
Michael C. Kennedy's Weblog
- Wednesday, December 16, 2009
|
|
|