public void StatboardShouldCopyProperly() { StatboardDefinition chartDefinition = new StatboardDefinition { Name = "Statboard" }; Statboard chart = new Statboard(chartDefinition); VisualObject copy = chart.Copy("Copied Statboard"); copy.Should().BeOfType <Statboard>(); Statboard copiedChart = ( Statboard )copy; copiedChart.ChartDefinition.Should().BeOfType <StatboardDefinition>(); copiedChart.Name.Should().Be("Copied Statboard"); }
public void MultiChartShouldCopyProperly() { MultiChartDefinition chartDefinition = new MultiChartDefinition { Name = "MultiChart" }; MultiChart chart = new MultiChart(chartDefinition); VisualObject copy = chart.Copy("Copied MultiChart"); copy.Should().BeOfType <MultiChart>(); MultiChart copiedChart = ( MultiChart )copy; copiedChart.ChartDefinition.Should().BeOfType <MultiChartDefinition>(); copiedChart.Name.Should().Be("Copied MultiChart"); }