public void SetHarmonicKind_ObserverPropertiesChangedAfterSetHarmonicKind() { IHarmonic harmonic = new Harmonic(); var harmonicObserver = new HarmonicObserver(); harmonic.SetObserver(harmonicObserver); harmonic.SetHarmonicKind(HarmonicKind.Sin); Assert.IsTrue(harmonicObserver.PropertiesChanged); }
public void SetAmplitude_ObserverPropertiesChangedAfterSetAmplitude() { IHarmonic harmonic = new Harmonic(); var harmonicObserver = new HarmonicObserver(); harmonic.SetObserver(harmonicObserver); harmonic.SetAmplitude(10); Assert.IsTrue(harmonicObserver.PropertiesChanged); }
public void SetFrequency_ObserverPropertiesChangedAfterSetFrequency() { IHarmonic harmonic = new Harmonic(); var harmonicObserver = new HarmonicObserver(); harmonic.SetObserver(harmonicObserver); harmonic.SetFrequency(10); Assert.IsTrue(harmonicObserver.PropertiesChanged); }