Skip to content

Helper Code

On software development and anything else I find interesting…

  • Twitter
  • LinkedIn
  • Me On Vimeo
  • Me on YouTube
  • GitHub
  • RSS
  • Home
  • Contact
  • Developer Story
  • Pluralsight author
  • Public speaker
  • About
  • Publications

Search Results for: How to fake a singleton in C

How to fake a singleton in C++

When unit testing legacy code I find several (anti) patterns which prevent getting code under test. The most recurring pattern I see is the Singleton pattern – a useful pattern when not abused and overused. In the object oriented world Singleton’s are slightly better than their evil cousin – the static method. Unfortunately I’ve seen … Continue reading How to fake a singleton in C++ →

Dror Helper Uncategorized 5 Comments September 16, 2015 3 Minutes
profile for Dror Helper at Stack Overflow, Q&A for professional and enthusiast programmers

Search

Recent Posts

  • Learning Rust one test at a time
  • Versioning Multiple Micro-Services in a Monorepo using Maven
  • New Pluralsight course – Unit Testing C Code in CLion
  • Easily create builders for your tests using Intellij IDEA
  • Better tests names using JUnit’s display names generators

Tags

.NET .NET 4 .NET Core Agile ALT.NET AOP Arduino async AWS AWS Lambda Azure BDD Blogging Book review C# C++ 11 CATCH Certifications CI Clean Code Concurrent Conference Debug Docker DSL Electronics FakeItEasy getting started Git GTest Hackaton IoT IronPython Java json JUnit Mockito Mock objects MS Fakes MSTest nDepend NUnit Open Source OzCode Performance PluralSight Podcast PostSharp Presentation Productivity Python Refactoring Reflection Resharper Rx Scrum Software Engineering Tasks TDD Thoughts Tips&Tricks Tips and Tricks Tools Typemock Uncategorized Unit tests Universal Apps VB.NET Visual Studio Visual Studio 2010 WinDbg Windows Phone WPF XML XUnit

Archives

Top posts

  • How to fake a singleton in C++
  • Aspect Oriented Programming in Python using Decorators
  • Versioning Multiple Micro-Services in a Monorepo using Maven
  • Comparing Two objects using Assert.AreEqual()
  • Catch - multi-paradigm automated test framework for C++
  • Assert.AreEqual in MSTest - done right
  • Checking expected exception message when using MS Test
  • Tip: Using Notepad++ to read log files
  • On object creation and unit tests
  • 15 Resharper keyboard shortcuts you need to know
Website Powered by WordPress.com.
  • Follow Following
    • Helper Code
    • Join 977 other followers
    • Already have a WordPress.com account? Log in now.
    • Helper Code
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar