26 Feb
2010

Behaviors with MSpec

In my previous posts, I showed the syntax for context/specifications using Machine.Specifications (or MSpec for short) and how to use an auto mocking container in conjunction with this excellent Behavior-Driven Development (BDD) framework. For this post, I want to show you one of the nice features of MSpec called behaviors. Suppose we have to create […]

Read More
20 Feb
2010

Silverlight 4 – Accessing System Devices with Com Interop, such as a Scanner.

Yesterday I gave a presentation on some new features in Silverlight 4.  During this presentation I mentioned the newly available ability to interoperate with Office applications such as Outlook and Excel though the new ComAutomationFactory that is in Silverlight 4.  Someone in the audience asked the question, ?Can I access my scanner?, and of course […]

Read More
19 Feb
2010

Getting Started With Machine.Specifications (MSpec)

Its been a while since I evaluated and evolved my approach to BDD. The way I?ve been doing BDD up until now is described in this blog post which goes way back to 2008. Everyone has kind of their own style nowadays. Below you can find the code of two context/specifications for a method named […]

Read More
18 Feb
2010

Shut Up, Bob

Category:UncategorizedTag: :13 Comments on Shut Up, Bob

Some of us are hurting our profession with the casual way we treat language. In the following examples, that guy is Bob. Scenario 1 Bob: “Hey, where should we go to lunch?” Joe: “I dunno, get in the car and we’ll decide later.” Bob: “Yeah, we’ll just be agile about it.” Giggle, giggle. Tee hee […]

Read More
15 Feb
2010

PowerShell – background task that speaks to me

Category:General PostTag: :

Today I was testing a long running task where my basic scenario was to execute at the PowerShell prompt. C:\dev> LongRunningTask.exe > Test1.txt C:\dev> LongRunningTask.exe > Test2.txt C:\dev> LongRunningTask.exe > Test3.txt Change some code and do it all over again. C:\dev> LongRunningTask.exe > Test4.txt C:\dev> LongRunningTask.exe > Test5.txt C:\dev> LongRunningTask.exe > Test6.txt Although seemingly simple […]

Read More