Profile cover photo
Profile photo
Pascal Laurin
43 followers
43 followers
About
Posts

Post has attachment
Unit testing smells and best practices
One of the most difficult task I know as a software engineer is to write good unit test. Of course multi-threading and distributed systems are also challenging but in this post I want to share some of the good and bad things I've learning doing unit testing...
Add a comment...

Post has attachment
Unit testing smells - The method is not public
A recurring pattern emerge often when unit testing, you find an interesting method you want to test but that method is private. Of course you could call that method through other public methods on the class but it might not be easy to cover all cases. This ...
Add a comment...

Post has attachment
Unit testing smells: The class constructor is not easy to call
When we want to test an instance method on a class the first challenge is to create an instance of that class. Hopefully the class constructor is easy to call but that's not always the case. Let's review a few cases where the constructor might prevent us to...
Add a comment...

Post has attachment
Unit test smells: The non-public class
Writing unit tests for a method on a class that is not public is doable but not straight forward. It could be done using a bit of reflection like this var type = Type.GetType("MyProject.MyClass");
var methodInfo = type.GetMethod("TheMethod");

var classInst...
Add a comment...

Post has attachment
Exploring BDDfy
BDDfy is a BDD library (part of the larger TestStack project ). It's function is to turn regular unit tests to BDD style tests (using the Gherkin syntax ). You can read more about BDDfy here . BDDfy can be used with any test framework or runner. Acquiring T...
Exploring BDDfy
Exploring BDDfy
pascallaurin42.blogspot.com
Add a comment...

Post has attachment
Visualizing Nuget packages dependencies without Visual Studio Ultimate
In my previous post I've shown the Package Visualizer tool . Unfortunately, it's only available in the Ultimate version of Visual Studio. But all is not lost because even with a Pro version with can open DGML files. I've created a LinqPad query that analy...
Add a comment...

Post has attachment
Managing NuGet packages dependencies with the Package Visualizer tool
If you
ever used NuGet on a large enough solution
you know you can get into trouble when projects reference different versions of the same NuGet
package. That happens a lot in Azure projects as the libraries/packages get
updated all the time. I'm
really sur...
Add a comment...

Post has attachment
NuGet packages dependencies with the Package Visualizer tool
If you
ever used NuGet on a large enough solution
you know you can get into trouble when projects reference different versions of the same NuGet
package. That happens a lot in Azure projects as the libraries/packages get
updated all the time. I'm
really sur...
Add a comment...

Post has attachment
Looking inside a NuGet package with NuGet Package Explorer
When I really want to learn something new (like a new tool, technology or a programming language) I do two things I try it myself Check out what others have done I'm currently learning how to create my own NuGet packages so I'm trying to do a lot of things ...
Add a comment...

Post has attachment
Packaging and distributing tools using NuGet
NuGet is an amazing tool to manage dependencies for external libraries. As part of Visual Studio it gives us an easy way to install and update those libraries over time. Now even Microsoft use it extensively to release updates to us . But the power of Nu...
Add a comment...
Wait while more posts are being loaded