예제 #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()
 {
     _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();
 }