public void SetUp()
 {
     _span           = new NuGenCountDownSpan(1, 3);
     _timer          = new StubTimer();
     _timer.Interval = 1;
     _countDownBlock = new NuGenCountDownBlock(_span, _timer);
     _eventSink      = new EventSink(_countDownBlock);
 }
		public void SetUp()
		{
			_span = new NuGenCountDownSpan(1, 3);
			_timer = new StubTimer();
			_timer.Interval = 1;
			_countDownBlock = new NuGenCountDownBlock(_span, _timer);
			_eventSink = new EventSink(_countDownBlock);
		}
            public EventSink(NuGenCountDownBlock eventInitiator)
            {
                Assert.IsNotNull(eventInitiator);

                eventInitiator.Tick += delegate
                {
                    _tickCount.Inc();
                };
            }
			public EventSink(NuGenCountDownBlock eventInitiator)
			{
				Assert.IsNotNull(eventInitiator);

				eventInitiator.Tick += delegate
				{
					_tickCount.Inc();
				};
			}
        /// <summary>
        /// Disposes of the resources (other than memory) used by the <see cref="T:System.Windows.Forms.Form"></see>.
        /// </summary>
        /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                Cursor.Show();

                if (_countDownBlock != null)
                {
                    _countDownBlock.Tick -= _countDownBlock_Tick;
                    _countDownBlock.Dispose();
                    _countDownBlock = null;
                }
            }

            base.Dispose(disposing);
        }
        public BreakTimerForm()
        {
            this.BackColor = SystemColors.Window;
            this.Font      = new Font("Verdana", 24, FontStyle.Bold);

            INuGenTimer timer = new NuGenTimer();

            timer.Interval = 1000;

            _countDownBlock = new NuGenCountDownBlock(
                new NuGenCountDownSpan(Math.Max(1, Math.Min(99, Settings.Default.Interval)), 0)
                , timer
                );

            _countDownBlock.Tick += _countDownBlock_Tick;
        }
		public void ConstructorArgumentNullExceptionTest()
		{
			_countDownBlock = new NuGenCountDownBlock(_span, null);
		}
 public void ConstructorArgumentNullExceptionTest()
 {
     _countDownBlock = new NuGenCountDownBlock(_span, null);
 }