codehealth

Keeping code readable, tested and maintainable.

I'm Learning Moq - A .NET Mocking Framework for Unit Tests
I'm Learning Moq - A .NET Mocking Framework for Unit Tests
· ☕ 2 min read
Mocking describes a feature in programming that allows you to replace the functionality of an object with a blank version of itself or provide your own functionality in its place.

An Abstraction of our Character Controller
An Abstraction of our Character Controller
· ☕ 2 min read
Lets take a look at building an abstraction over a character controller in our 2D platforming game. The goal of this refactoring and abstraction pattern is to improve the testability and modularity of the character controller.

I Built A New Website
I Built A New Website
· ☕ 2 min read
I’ve been trying to replace the old World of Zero website for a while now. A beta of the new version is finally in a working state and I’d love for you all to check it out!

Placing our Health Tracker Component Under Test with Unity Test Runner
Placing our Health Tracker Component Under Test with Unity Test Runner
· ☕ 2 min read
Lets explore this new health tracking component we’ve built by introducing the Unity Test Runner to our project. The Unity Test Runner allows you to add a variety of NUnit tests to your project that allow you to create Edit and Play mode tests.

Unit Testing in Unity Using the Unity Test Runner
Unit Testing in Unity Using the Unity Test Runner
· ☕ 2 min read
Testing code is important. It ensures that the code you just wrote works, but more importantly it serves as documentation about exactly what your code does and ensures that after months of maintenance and changes that the code you haven’t touched in months still does what you think.

Code Long And Test With Spock Unit Tests
Code Long And Test With Spock Unit Tests
· ☕ 1 min read
Given: “A video about Spock” Expect: “To learn how to use Spock to test your Java or JVM based projects”

I Have A Theory - Theories in xUnit Tests
I Have A Theory - Theories in xUnit Tests
· ☕ 1 min read
Unit Testing. Turns out someone actually thinks it’s a good idea if all this code we write actually works.