Exemple #1
0
        public void TableRendererTest1()
        {
            var pointList = new List <Point>
            {
                new Point(1, 2),
                new Point(3, 4)
            };

            var tableIn = new Collection <Collection <object> >
            {
                new Collection <object> {
                    "y", "x"
                }
            };

            var renderer    = new TableRenderer <Point>(GetTableValues);
            var resultTable = renderer.MakeTableTable(pointList, tableIn);

            Assert.AreEqual(3, resultTable.Count);
            var header = resultTable[0] as Collection <object>;

            Assert.IsNotNull(header);
            Assert.AreEqual("report:Y", header[0]);
            Assert.AreEqual("report:X", header[1]);
            var row1 = resultTable[1] as Collection <object>;

            Assert.IsNotNull(row1);
            Assert.AreEqual(2, row1[0]);
            Assert.AreEqual(1, row1[1]);
        }
        /// <summary>Table interface, providing full details about the comparison</summary>
        public Collection <object> DoTable(Collection <Collection <object> > tableIn)
        {
            var renderer    = new TableRenderer <IMeasurementComparison>(GetTableValues);
            var resultTable = renderer.MakeTableTable(Result.Values, tableIn);

            return(resultTable);
        }
Exemple #3
0
        /// <summary>The result of the comparison in a Table Table format</summary>
        public Collection <object> DoTable(Collection <Collection <object> > tableIn)
        {
            var renderer = new TableRenderer <CellComparison>(GetTableValues);

            return(renderer.MakeTableTable(Result, tableIn));
        }