Implementation of the famous Kata FizzBuzz This is used to support a presentation of UnitTesting using NUnit, NSubstitute
NET 6 visual studio 2022
git clone https://github.com/AlexisGoument/FizzBuzz.git
- Project basis: FizzBuzz class with method CountTo100
- Test project with nuget NUnit
- Implement class FizzBuzz + Test (DummyClass allows to test method IsMultiple3 without public accessor)
- Bonus: 3.1. Add a repository Database.GetNumbers() throwing an exception 3.2. Add a private property FizzBuzz._database (passed in constructor) 3.3. Add a method string[] FizzBuzz.TransformFromDatabase() calling Database.GetNumbers() 3.4. Test it (with nuget NSubstitute)