コード例 #1
0
        public void ConvertChartToXMLTest()
        {
            XmlDocument doc = ChartToCSVExporter.ConvertChartToXML(chart);

            // XDocument doc = ChartToCSVExporter.ConvertChartToXML(chart);
            //  doc.Save(@"c:\spmimages\chart.xml");
            Assert.IsNotNull(doc.HasChildNodes);
        }
コード例 #2
0
        public void GetPointsListFromSeriesNodeTest()
        {
            XmlNodeList series = ChartToCSVExporter.GetSeriesListFromChartXML(ChartToCSVExporter.ConvertChartToXML(chart));

            var points = ChartToCSVExporter.GetPointsListFromSeriesNode(series.Item(0));

            Assert.IsTrue(points.Count == 6);
        }
コード例 #3
0
        public void CreateByteArrayListBySeriesTest()
        {
            XmlNodeList series = ChartToCSVExporter.GetSeriesListFromChartXML(ChartToCSVExporter.ConvertChartToXML(chart));



            var arrayList = ChartToCSVExporter.GetByteArrayListBySeries(series);

            Assert.IsTrue(arrayList.Count == 2);
        }
コード例 #4
0
        public void GetSeriesListFromChartXMLTest()
        {
            var series = ChartToCSVExporter.GetSeriesListFromChartXML(ChartToCSVExporter.ConvertChartToXML(chart));

            Assert.IsTrue(series.Count == 2);
        }