Problem My approach to unit testing feels very wrong. I feel like I am missing something very basic, and I’m […]
Tag: nunit
Proxy test class approach to allow covering legacy code with unit tests
Problem There is huge legacy class MyService in which several new business cases need to be implemented. Unfortunately we are […]
TDD Supermarket Pricing Kata
Problem I have done the supermarket pricing kata in TDD style and I would appreciate it if someone could review […]
Mocking IElasticClient in unit tests
Problem I’m trying to unit test how my class responds to a NEST 1.7 IElasticClient‘s return values, using NUnit 2.6.4 […]
TDD – String Calculator Kata
Problem Would really appreciate it if someone could please review my String Calculator TDD KATA. String Calculator Create a simple […]
REST API wrapper testing
Problem I’m writing wrapper for REST API of a service. In my wrapper I have quite simple method: public List<string> […]
Unit tests for a function that calculates demerit points for speeding
Problem I’m currently working on a unit testing course (NUnit 3.x). I’ve been tasked with a simple class to test […]
TDD – Kata – String Calculator
Problem This is my first TDD Kata I’ve done and I’d appreciate it if someone could review it. String Calculator […]
How can I better the readability of inline test data?
Problem [TestCase(new[] { 1, 2 }, 1, Result = 2)] [TestCase(new[] { 1, 2 }, 2, Result = 1)] [TestCase(new[] […]
Unit testing IValueConverter
Problem I am just starting to implement unit testing into my project and familiarizing myself with NUnit. I have added […]
- 1
- 2