public void should_return_an_observed_data_collection_with_the_expected_properties() { _newObservedDataCollection.ApplyGroupingToObservedData.ShouldBeEqualTo(_observedDataCollection.ApplyGroupingToObservedData); _newObservedDataCollection.AllObservedData().ShouldOnlyContain(_observedDataCollection.AllObservedData()); _newObservedDataCollection.ObservedDataCurveOptions().Count().ShouldBeEqualTo(_observedDataCollection.ObservedDataCurveOptions().Count()); _newObservedDataCollection.ObservedDataCurveOptionsFor(_firstObservedDataColumn).Caption.ShouldBeEqualTo(_observedDataCurveOptions.Caption); }
public void UpdateFrom(ObservedDataCollection observedDataCollection) { if (observedDataCollection == null) { return; } observedDataCollection.AllObservedData().Each(AddObservedData); observedDataCollection.ObservedDataCurveOptions().Each(AddCurveOptions); ApplyGroupingToObservedData = observedDataCollection.ApplyGroupingToObservedData; }