Integer to binary string in c#
Python has the terribly useful functionality of bin() to do this, but what about C#?
Python has the terribly useful functionality of bin() to do this, but what about C#?
Ever since LINQ arrived in C# land, a lot of people have been using a functional style of programming without even perhaps being conscious of it.
Ever worked on a project that involved spawning new .NET processes? (as in, one [arbitrary] program launches another .NET executable) I’ve had to do this on ...
Destroy All … Things
A quickie, but something to be very wary of. I’ve been using Unity3d of late (I recommend it – it’s a very opinionated and sometimes quirky bit of software, ...
This post was in response to a post on the fragmental.tw blog (the comments aren’t working for me, so I thought I’d post it here) which I read via Roy Oshero...
I’ve been faffing around with Castle.DynamicProxy2 a bit lately and it’s a pretty interesting bit of kit. Castle Dynamic Proxy (CDP) allows you to dynamicall...
It’s a fairly common occurrence - somebody wants to use NUnit’s data driven testing, but they want to vary either the action under test, or the expectation. ...
When the logic of a test method remains constant but the data varies, data-driven testing is a great tool. It allows you, the test author, to write compact c...
I was given an NDepend license to play around with (thanks to Patrick) and said I’d blog about it. Apologies for my tardiness!
I’ve recently been tinkering with WCF and, as many people already know, writing data transfer objects is a pain in the balls. Nobody likes writing repetitive...
Going from experience and, as illustrated by Misko’s recent presentation, the more dependencies you have on your environment, the less trustworthy and mainta...
edit - In modern C# you can use the nameof() expression to do things like this.
There is a bewildering array of types of ‘mock’ object available to a tester. The canonical list of test doubles was probably coined by the venerable Martin ...
I’ve been meaning to try out NHibernate for a good ol’ while. It’s a long-established and respected O/R M library and one of the authors (Ayende) writes a bl...
As a test engineer, I spend a lot of my time reading -and making sense of- other people’s code. I find it interesting that logically equivalent, re-arranged ...
Something I’ve just noticed is that Visual Studio falls far, far short when it comes to solution ordering.
Have you ever been in this situation? You have thousands of tests in scores of assemblies. All of the tests pass. However, when you run the test suite a seco...
If you ever have to test a class that uses a WeakReference, or even just have to use Weak References, be very careful. Numerous strange-looking things can oc...