Seminar sylabus PV260 (C# group 03)

3 - TDD drill

In this seminar, we will exercise TDD practice on simple katas in order to get familiar with the technique and make it part of our "muscle memory".

Fizz Buzz kata

Fizz Buzz is a mathematical game that is played with a group of people. Each person says a number in a sequence, but when the number is a multiple of 3, they have to say "Fizz", when it is a multiple of 5 they have to say "Buzz", and if it is a multiple of both 3 and 5, "FizzBuzz". If someone makes a mistake and it is noticed, they are out.

A typical game might start like: 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, Fizz Buzz, etc.

Make a program that writes Fizz Buzz sequence of first N numbers.


Pangram kata

Determine if a sentence is a pangram. A pangram (Greek: παν γράμμα, pan gramma, "every letter") is a sentence using every letter of the alphabet at least once. The best known English pangram is:
  • The quick brown fox jumps over the lazy dog.
  • The alphabet used consists of ASCII letters a to z, inclusive, and is case insensitive. Input will not contain non-ASCII symbols.