public void SetHarmonicKind_ObserverPropertiesChangedAfterSetHarmonicKind() { IHarmonic harmonic = new Harmonic(); var harmonicObserver = new HarmonicObserver(); harmonic.SetObserver(harmonicObserver); harmonic.SetHarmonicType(HarmonicType.Sin); Assert.IsTrue(harmonicObserver.PropertiesChanged); }
public void SetPhase_ObserverPropertiesChangedAfterSetPhase() { IHarmonic harmonic = new Harmonic(); var harmonicObserver = new HarmonicObserver(); harmonic.SetObserver(harmonicObserver); harmonic.SetPhase(10); Assert.IsTrue(harmonicObserver.PropertiesChanged); }