Exemplo n.º 1
0
        public void SetHarmonicKind_ObserverPropertiesChangedAfterSetHarmonicKind()
        {
            IHarmonic harmonic         = new Harmonic();
            var       harmonicObserver = new HarmonicObserver();

            harmonic.SetObserver(harmonicObserver);
            harmonic.SetHarmonicType(HarmonicType.Sin);

            Assert.IsTrue(harmonicObserver.PropertiesChanged);
        }
Exemplo n.º 2
0
        public void SetPhase_ObserverPropertiesChangedAfterSetPhase()
        {
            IHarmonic harmonic         = new Harmonic();
            var       harmonicObserver = new HarmonicObserver();

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

            Assert.IsTrue(harmonicObserver.PropertiesChanged);
        }