7 Easy Steps to Writing Your First C# Unit TestUnit tests are typically the simplest form of automated test. Their aim should be to check the basic input and output of isolated units of logic. Because of their simplicity (relative to other types of tests), they are usually the fastest type of tes...May 24, 2023 · 6 min readanthonyfung.hashnode.dev
4 Types of Tests to Help Keep Your Software's Bug Count LowTesting software before releasing it is essential. Ideally, we want as much testing done as possible. If we have more confidence that our code changes won’t break things, we can afford to move faster. There are many ways that we can test software. Th...May 17, 2023 · 3 min readanthonyfung.hashnode.dev
What Does Design, Maintainability, and Testability Have to do with... Food?There’s a common saying that everyone has a unique programming style, and that we leave a ‘signature’ in the code we write. I’d agree that people often leave clues, though I’ll also say that the way I write code has changed for me over time. I wanted...May 10, 2023 · 5 min readanthonyfung.hashnode.dev
Using Dependency Injection and Service Locators to get References in C#I received a coursework project in the second year of my studies. As it was the first time that the students on the course were expected to build a Java desktop app with a user interface (UI), the course lecturer gave us an introduction to creating U...May 3, 2023 · 5 min readanthonyfung.hashnode.dev
Composition or Inheritance: What’s better?“What’s better: composition or inheritance?” I froze. Time stood still for me. I diverted my gaze leftward through a tall window in the room. The view wasn’t particularly inspiring: I could see the grey concrete wall of the office building across the...Apr 26, 2023 · 5 min readanthonyfung.hashnode.dev