Example #1
0
		public void CheckThatSegmentHasProperPlotter()
		{
			ChartPlotter plotter = new ChartPlotter();
			plotter.PerformLoad();
			Segment segment = new Segment();

			plotter.Children.Add(segment);

			Assert.AreEqual(plotter, segment.Plotter);
		}
Example #2
0
		public void CheckThatSegmentHasNullPlotterAfterDisconnection()
		{
			ChartPlotter plotter = new ChartPlotter();
			Segment segment = new Segment();

			plotter.Children.Add(segment);
			plotter.PerformLoad();
			plotter.Wait(DispatcherPriority.Background);

			plotter.Children.Remove(segment);
			plotter.Wait(DispatcherPriority.Background);

			Assert.IsNull(segment.Plotter);
		}