public void TestPatchApplied()
 {
     Assert.Equal(0, progress.Counter.appliedPatches);
     progress.PatchApplied();
     Assert.Equal(1, progress.Counter.appliedPatches);
     progress.PatchApplied();
     Assert.Equal(2, progress.Counter.appliedPatches);
 }
Ejemplo n.º 2
0
        public void TestPatchApplied()
        {
            int eventCounter = 0;

            progress.OnPatchApplied.Add(() => eventCounter++);
            Assert.Equal(0, progress.Counter.appliedPatches);
            progress.PatchApplied();
            Assert.Equal(1, progress.Counter.appliedPatches);
            Assert.Equal(1, eventCounter);
            progress.PatchApplied();
            Assert.Equal(2, progress.Counter.appliedPatches);
            Assert.Equal(2, eventCounter);
        }