Alec Lazarescu's Blog
Welcome to Alec Lazarescu's Blog
Sign in
|
Join
|
Help
Go
Home
|
Blogs
RSS 2.0
|
Atom 1.0
|
<
March 2010
>
Su
Mo
Tu
We
Th
Fr
Sa
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
This Blog
Home
Links
Tags
Creative
Functional Programming
Refactoring
SQL Server
T-SQL
Unit Testing
Archives
October 2008 (1)
September 2008 (1)
April 2008 (1)
February 2008 (6)
January 2008 (2)
October 2007 (1)
June 2007 (1)
February 2007 (2)
Browse by Tags
All Tags
»
Unit Testing
(RSS)
Functional Programming
Refactoring
Syntactic Sugar for Thrown Exception Checking with Generics
Posted
Saturday, October 25, 2008 8:52 AM
by
alecl
::
1 Comments
Filed under
Unit Testing
,
Functional Programming
Using attributes like [ExpectedException] can obscure intent because they apply to the whole method instead of a specific call you're checking. To make intent totally clear and prevent unexpected bugs, you should wrap just the statement you're expecting
Read More...
Functional Programming and Unit Testing
Posted
Saturday, September 13, 2008 10:21 AM
by
alecl
::
0 Comments
Filed under
Unit Testing
,
Functional Programming
These code samples are from: http://www.ayende.com/Blog/archive/2008/06/06/Scratching-an-itch-NMemcached.aspx public class SystemTime { public static Func<DateTime> Now = () => DateTime.Now; } At first I was wondering what the point of that was.
Read More...
Good Overview of Types of Testing and TDD
Posted
Friday, February 22, 2008 5:58 PM
by
alecl
::
0 Comments
Filed under
Unit Testing
Test-driven development, Unit Test, VSTS, NUnit, TestDriven.NET, whats all this? Good Overview of Types of Testing and TDD Share this post: Email it! | bookmark it! | digg it! | reddit!
Read More...
Testing Theories Part 4 - TypeMock Isolator - The Dark Horse of Unit Testing?
Posted
Monday, February 18, 2008 8:17 PM
by
alecl
::
3 Comments
Filed under
Unit Testing
Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Testing Theories Part 3 - IoC Containers (Castle Windsor, Spring.NET), AutoMocking Containers
Posted
Monday, February 18, 2008 5:41 PM
by
alecl
::
4 Comments
Filed under
Unit Testing
Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Testing Theories Part 2 - Unit Testing with Inversion of Control Pro's/Con's
Posted
Monday, February 18, 2008 2:04 PM
by
alecl
::
4 Comments
Filed under
Unit Testing
Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Testing Theories Part 1 - Classical vs Mock Testing
Posted
Monday, February 18, 2008 11:01 AM
by
alecl
::
3 Comments
Filed under
Unit Testing
I'll begin a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Assigning Responsibilities
Posted
Monday, January 14, 2008 8:04 AM
by
alecl
::
1 Comments
Filed under
Refactoring
,
Unit Testing
It’s All about Assigning Responsibilities This example really hit home for me. I am faced with a very similar legacy code design where some processing takes place and an e-mail is sent out. My current tests consist of integration tests that outright send
Read More...
Promises and Paradigms
Posted
Sunday, February 25, 2007 11:37 PM
by
alecl
::
0 Comments
Filed under
Refactoring
,
Unit Testing
I've always tried to make it a point to read a lot about the industry and constantly shifting and improving methods and best practices. Sometimes the buzz dies down after a bit -- I was particularly amused to find people tired of the lofty promises of
Read More...