Exemplo n.º 1
0
        public void TestBuildTableWithOneRow()
        {
            var table = new TextTable("one", "two");

            table.AddRow("one", 1);

            var result = table.ToString().Split(Environment.NewLine);

            Assert.AreEqual("one  two", result[0]);
            Assert.AreEqual("one    1", result[1]);
        }
Exemplo n.º 2
0
        public void TestBuildTableWithOneRow()
        {
            var table = new TextTable("one", "two");

            table.AddRow("one", 1);

            var result = table.ToString().Split(Environment.NewLine);

            Assert.AreEqual("one  two", result[0]);
            Assert.AreEqual("one    1", result[1]);
        }
Exemplo n.º 3
0
        public void TestBuildTableWithTwoRowsWithNull()
        {
            var table = new TextTable("One", "Two");

            table.AddRow("one");
            table.AddRow("one two", 123);

            var result = table.ToString().Split(Environment.NewLine);

            Assert.AreEqual("One      Two", result[0]);
            Assert.AreEqual("one", result[1]);
            Assert.AreEqual("one two  123", result[2]);
        }
Exemplo n.º 4
0
        public void TestBuildTableWithTwoRows()
        {
            var table = new TextTable("First", "Second");

            table.AddRow("one", 1);
            table.AddRow("one two", 123);

            var result = table.ToString().Split(Environment.NewLine);

            Assert.AreEqual("First    Second", result[0]);
            Assert.AreEqual("one           1", result[1]);
            Assert.AreEqual("one two     123", result[2]);
        }
Exemplo n.º 5
0
        public void TestBuildTableWithTwoRowsWithNull()
        {
            var table = new TextTable("One", "Two");

            table.AddRow("one");
            table.AddRow("one two", 123);

            var result = table.ToString().Split(Environment.NewLine);

            Assert.AreEqual("One      Two", result[0]);
            Assert.AreEqual("one", result[1]);
            Assert.AreEqual("one two  123", result[2]);
        }
Exemplo n.º 6
0
        public void TestBuildTableWithTwoRows()
        {
            var table = new TextTable("First", "Second");

            table.AddRow("one", 1);
            table.AddRow("one two", 123);

            var result = table.ToString().Split(Environment.NewLine);

            Assert.AreEqual("First    Second", result[0]);
            Assert.AreEqual("one           1", result[1]);
            Assert.AreEqual("one two     123", result[2]);
        }