Esempio n. 1
0
 public void ReturnFizzIfDIvisbleByTHreeTest()
 {
     FizzBuzz fb = new FizzBuzz();
     string returnTextForNumber = fb.GetTextForNumber(6);
     Assert.That(returnTextForNumber, Is.EqualTo("FIZZ"));
 }
Esempio n. 2
0
 public void ReturnBUZZIfDivisbileByFiveTest()
 {
     FizzBuzz fb = new FizzBuzz();
     string returnTextForNumber = fb.GetTextForNumber(10);
     Assert.That(returnTextForNumber, Is.EqualTo("BUZZ"));
 }
Esempio n. 3
0
 public void ReturnFIZZBUZZIdDivisbleByThreeANdFiveTest()
 {
     FizzBuzz fb = new FizzBuzz();
     string returnTextForNumber = fb.GetTextForNumber(15);
     Assert.That(returnTextForNumber, Is.EqualTo("FIZZBUZZ"));
 }
Esempio n. 4
0
 public void ReturnAllValueTest()
 {
     FizzBuzz fb = new FizzBuzz();
     fb.Process(200);
 }
Esempio n. 5
0
 public void ReturnAllOtherValues()
 {
     FizzBuzz fb = new FizzBuzz();
     string returnTextForNumber = fb.GetTextForNumber(4);
     Assert.That(returnTextForNumber, Is.EqualTo("4"));
 }
Esempio n. 6
0
 public void IsThreeDivisibleByTHreeTEst()
 {
     FizzBuzz fb = new FizzBuzz();
     bool isDivisibleByThree = fb.IsDivisbleByThree(3);
     Assert.That(isDivisibleByThree, Is.True);
 }
Esempio n. 7
0
 public void IsFiveDivisibleByFIveTest()
 {
     FizzBuzz fb = new FizzBuzz();
     bool isDivisiblByFive = fb.IsDivisbleByFive(5);
     Assert.That(isDivisiblByFive, Is.True);
 }
Esempio n. 8
0
 public void CanInstantiateTest()
 {
     FizzBuzz fb = new FizzBuzz();
     Assert.That(fb, Is.Not.Null);
 }