Example #1
0
 public void Setup()
 {
     _SUT = new FizzBuzz();
     _SUT.IncludeDefaultSubs = true;
     _SUT.AddSubstitutionRule(x=>x == 4 ? "hello":"");
     _SUT.Execute(3, 5);
     this._result = this._SUT.Execute(3,5).ToList();
 }
Example #2
0
 public void Setup()
 {
     _SUT = new FizzBuzz();
     _SUT.IncludeDefaultSubs = true;
     _SUT.AddSubstitutionRule(x => { throw new Exception("I hate x!!!"); });
     _SUT.AddSubstitutionRule(x => x == 3 ? "goodbye" : "");
     _SUT.Execute(3, 5);
     this._result = this._SUT.Execute(3, 5).ToList();
 }
Example #3
0
 public void Setup()
 {
     var fizzBuzz = new FizzBuzz();
     fizzBuzz.IncludeDefaultSubs = true;
     this._result = fizzBuzz.Execute(5,10).ToList();
 }
 public void Should_Translate_1_as_1()
 {
     var fizzbuzz = new FizzBuzz();
     fizzbuzz.Translate("1").ShouldEqual("1");
 }