Esempio n. 1
0
 public void ThirtyFiveUpdatesIsEnough()
 {
     System.Console.WriteLine("================ 35 updates is enough ===================");
     var updateA = new Program();
     var updateB = new Program();
     for(var i=1; i<=34; i++)
     {
       updateA.OldUpdateQuality();
       updateB.OldUpdateQuality();
     }
     updateB.OldUpdateQuality();
     Assert.IsTrue( AreEquivalent(updateA.Items, updateB.Items, TestAssemblyTests.QualityAreEqual) );
 }
Esempio n. 2
0
 public void Update(int step)
 {
     System.Console.WriteLine("================ {0} ===================", step);
     var reference = new Program();
     var refactored = new Program();
     while(step-->0)
     {
       reference.OldUpdateQuality();
       refactored.NewUpdateQuality();
     }
     Assert.IsTrue( AreEquivalent(refactored.Items, reference.Items, TestAssemblyTests.AreEqual) );
 }