public EventSink(StubSpin spin)
            {
                Assert.IsNotNull(spin);

                spin.ValueChanged += delegate
                {
                    _valueChangedCount.Inc();
                };
            }
			public EventSink(StubSpin spin)
			{
				Assert.IsNotNull(spin);

				spin.ValueChanged += delegate
				{
					_valueChangedCount.Inc();
				};
			}
        public void SetUp()
        {
            _spin      = new StubSpin();
            _eventSink = new EventSink(_spin);

            _item  = "item";
            _item2 = "item2";
            _item3 = "item3";
            _item4 = "item4";
            _item5 = "item5";

            _spin.Items.AddRange(new string[] { _item, _item2, _item3, _item4, _item5 });
        }
		public void SetUp()
		{
			_spin = new StubSpin();
			_eventSink = new EventSink(_spin);

			_item = "item";
			_item2 = "item2";
			_item3 = "item3";
			_item4 = "item4";
			_item5 = "item5";

			_spin.Items.AddRange(new string[] { _item, _item2, _item3, _item4, _item5 });
		}
示例#5
0
		public void SetUp()
		{
			_spin = new StubSpin();
			_eventSink = new EventSink(_spin);
		}
		public void SetUp()
		{
			_spin = new StubSpin();
		}
示例#7
0
 public void SetUp()
 {
     _spin = new StubSpin();
 }
示例#8
0
 public void SetUp()
 {
     _spin      = new StubSpin();
     _eventSink = new EventSink(_spin);
 }