DCSIMG
unit tests,DEV - Yuval Mazor - Searching for Zen in Software Development

Yuval Mazor - Searching for Zen in Software Development

Browse by Tags

All Tags » unit tests » DEV (RSS)
Testing a Longest-Common Prefix Implementation Using Model-Based Testing
In  my last post I discussed how to implement a Longest-Common Prefix (LCP) algorithm in both an imperative and functional manner in C#.  I also mentioned the fact that for the imperative implementation I needed some to write some unit tests.  Here is the test code: [ TestClass ] public class LCPTests { [ TestMethod ] public void Get_WithNoValues_ShouldReturnEmptyString() { string result = LCP .Get( new string [] {}); Assert .AreEqual(0, result.Length); } [ TestMethod ] public void...
Getting Started with Getting Started: Yet Another TDD Post
Sit back for a second and think: what’s the scariest moment when starting a new project? For me, it’s sitting in front of an empty code file. I mean, I have the latest versions of Visual Studio and Windows on my machine (2012 and 8, respectively, at the time of writing), everything is humming along nicely, all this power at my fingertips – and nothing to apply it to. I’m staring at an abyss. It’s absolutely terrifying. I had always thought that it’s just me and my personal biases, but recently I...
Retrieving Unit Test Results for Builds in TFS 2010
Have you ever wanted to use the TFS 2010 data warehouse for retrieving the unit test pass/fail count for a specific build?  Maybe you wanted a report showing the number of unit tests that ran during each nightly build last week.  In any case, if you wanted this or something similar, you soon found out an interesting fact – picking out only unit tests from the warehouse is not trivial.  Here is the query for doing this: SELECT BuildName AS 'Build',   COALESCE([Passed],0...