예제 #1
0
        public void Then_culture_is_ensured_with_time_entry()
        {
            var ensureWasCalled = false;

              TimeEntryImplant.Ensure implant =
            culture
              => ensureWasCalled = true;

              var ts = new TimeServer();
              var chrono = new Chronograph(implant);

              chrono.IsDirty = false;
              chrono.SyncWith(ts);

              Assert.IsTrue(ensureWasCalled);
        }
예제 #2
0
        public void Then_culture_is_ensured_with_time_entry()
        {
            var ensureWasCalled = false;

            TimeEntryImplant.Ensure implant =
                culture
                => ensureWasCalled = true;

            var ts     = new TimeServer();
            var chrono = new Chronograph(implant);

            chrono.IsDirty = false;
            chrono.SyncWith(ts);

            Assert.IsTrue(ensureWasCalled);
        }