示例#1
0
        public void SetHarmonicKind_ObserverPropertiesChangedAfterSetHarmonicKind()
        {
            IHarmonic harmonic         = new Harmonic();
            var       harmonicObserver = new HarmonicObserver();

            harmonic.SetObserver(harmonicObserver);
            harmonic.SetHarmonicKind(HarmonicKind.Sin);

            Assert.IsTrue(harmonicObserver.PropertiesChanged);
        }
示例#2
0
        public void SetAmplitude_ObserverPropertiesChangedAfterSetAmplitude()
        {
            IHarmonic harmonic         = new Harmonic();
            var       harmonicObserver = new HarmonicObserver();

            harmonic.SetObserver(harmonicObserver);
            harmonic.SetAmplitude(10);

            Assert.IsTrue(harmonicObserver.PropertiesChanged);
        }
示例#3
0
        public void SetFrequency_ObserverPropertiesChangedAfterSetFrequency()
        {
            IHarmonic harmonic         = new Harmonic();
            var       harmonicObserver = new HarmonicObserver();

            harmonic.SetObserver(harmonicObserver);
            harmonic.SetFrequency(10);

            Assert.IsTrue(harmonicObserver.PropertiesChanged);
        }