Brainstorm Edge Cases for Testing With ChatGPT

Writing tests is one of those tasks that’s both crucial and easy to overlook. Most of us start with the “happy path” — the ideal scenario where everything works as expected. But real users don’t always follow the happy path, and that’s where edge cases come in.

The problem? It’s easy to miss unusual inputs, boundary conditions, or unexpected scenarios when writing tests by hand. That’s where ChatGPT comes in handy: it can brainstorm edge cases I might not immediately think of and help me write more robust test suites.

Here’s how I use it.

Continue reading “Brainstorm Edge Cases for Testing With ChatGPT”

Pluralsight Notes – Better .NET Unit Tests with AutoFixture: Get Started

The Better .NET Unit Tests with AutoFixture: Get Started course by Jason Roberts, takes you through the need for and use of AutoFixture. AutoFixture is an open source library that helps you to create anonymous test data to accelerate your unit testing time frame. The ability that AutoFixture provides to quickly and easily generate anonymous test data is also a great addition to moving towards TDD. I am definitely a proponent of utilizing a TDD methodology, a tool like AutoFixture certainly helps to reduce the resistance by making the data setup much easier. This course will get you up and running with AutoFixture quickly, by taking you through all of the basic and some important advanced usages you may need to understand to get AutoFixture integrated into your project. Continue reading “Pluralsight Notes – Better .NET Unit Tests with AutoFixture: Get Started”

Pluralsight Notes – Effective C# Unit Testing for Enterprise Applications

Introduction

Pluralsight is a great online resource for Developer/Technology training courses.  I have recently begun working through a bunch of courses and I thought I would begin sharing my notes I take while viewing these courses.  Effective C# Unit Testing for Enterprise Applications by Rusty Divine, aims to improve the viewers unit testing knowledge through solid patterns and practices to follow and understanding what to avoid. Continue reading “Pluralsight Notes – Effective C# Unit Testing for Enterprise Applications”