Example #1
0
        public void StartsOnlyOnceSubscribedTo()
        {
            _parallel.AddAction(() => _value = 2);
            Assert.That(_value, Is.EqualTo(0));

            _parallel.Subscribe();
            Assert.That(_value, Is.EqualTo(2));
        }