Skip to content
ict-man logo
ict-man.me

Adventures in Technology

 Menu
  • Home
  • C# Library
  • About Me
  • Home
  • C# Library
  • About Me

Category: Testing

Testing

Unit Testing Private Methods
  • Testing

Unit Testing Private Methods

  • David
  • 16 Jul 202116 Jul 2021

Should we be unit testing private methods? Good practice says no. Are there reasons why having this ability in our toolbox is desirable?

Recent Posts

Screenshot of CCS Editor in a WordPress WidgetC# LogoC# LogoC# LogoScreenshot of CCS Editor in a WordPress WidgetBlue whale Docker logoHowards Camera Eye from Infinity ChamberWordPress W LogoPHP 8 Logo
Screenshot of CCS Editor in a WordPress Widget
CodeMirror in a WordPress Widget – Update
In January I blogged how to create a WordPress widget that uses CodeMirror for editing CSS.  Last month WordPress 5.8 was released.  This changed the way traditional/existing widgets are rendered...
Unit Testing Private Methods
Should we be unit testing private methods? Good practice says no. Are there reasons why having this ability in our toolbox is desirable?
C# Logo
C# Nulls – Part 3 – Null Coalescing and Conditional
In Part 2 we covered the enabling C#’s nullable option to subtly change how we handle reference types.  Once enabled reference types are by default no longer [expected] to be...
C# Logo
C# Nulls – Part 2 – Nullable Reference Types
What Are Nullable Reference Types? In Part 1 I dove into various improvements with the C# language in relation to null handling and new operators. In this part, I am...
C# Logo
C# Null; Nullable; Null Operators; Null-Coalescing – Part 1
The C# language has developed to include a better toolset and compiler warnings. Thus, assisting development in producing null-safer code with a more robust approach.
Screenshot of CCS Editor in a WordPress Widget
Using CodeMirror CSS Editor in a WordPress Widget
WordPress uses CodeMirror for the CSS editor within its Customiser. CodeMirror provides support for syntax highlighting, linting, and code competition. Would it not be great to be able to use...
Blue whale Docker logo
Windows Docker Container with PHP, Apache and MariaDB
The new year saw me refreshing one of my popular development stacks. My main system is Windows 10 (2004) and for some project work, I use Docker to enable the...
Howards Camera Eye from Infinity Chamber
Infinity Chamber – Film
Infinity Chamber is an excellent independent Sci-Fi film in the great dystopian traditional of man versus machine.  In this case, it is a take on AI where the main protagonist,...
WordPress W Logo
The Impressive Success of WordPress
Did you know that WordPress is said to be powering over a third of the web? WordPress’ domain (pun intended) over how content is managed, organised and displayed to web...
PHP 8 Logo
Named Arguments and Union Types in PHP 8.0
I am itching to get my hands dirty on PHP 8.0 that was released last week.  Unfortunately, I cannot make the big jump immediately but there are some language improvements...
David at Whitby Brewery

Hi, I’m David Pullin, a professional software developer with a love of coding and crafting ICT solutions...more...

© ict-man.me 2020

  • Cookie Policy

Masonry Blog, WordPress theme by Perfectwpthemes