public void MsarAddsObserverToAll()
        {
            var progress = new NullProgress();
            var observer = new MockObserver();
            _msar.AddObserver(observer, progress);

            Assert.That(_primary.Observer, Is.EqualTo(observer));
            Assert.That(_other1.Observer, Is.EqualTo(observer));
            Assert.That(_primary.ProgressPassedToAddObserver, Is.EqualTo(progress));
            Assert.That(_other2.ProgressPassedToAddObserver, Is.EqualTo(progress));
        }
Example #2
0
        public void MsarAddsObserverToAll()
        {
            var progress = new NullProgress();
            var observer = new MockObserver();

            _msar.AddObserver(observer, progress);

            Assert.That(_primary.Observer, Is.EqualTo(observer));
            Assert.That(_other1.Observer, Is.EqualTo(observer));
            Assert.That(_primary.ProgressPassedToAddObserver, Is.EqualTo(progress));
            Assert.That(_other2.ProgressPassedToAddObserver, Is.EqualTo(progress));
        }