Пример #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();
 }
Пример #2
0
 public void Setup()
 {
     var fizzBuzz = new FizzBuzz();
     fizzBuzz.IncludeDefaultSubs = true;
     this._result = fizzBuzz.Execute(5,10).ToList();
 }
Пример #3
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();
 }