public void CobolTable_SumAllTableFields()
        {
            var table = new CobolTable <MyRow>();

            var row1 = new MyRow()
            {
                A = 10, B = 2
            };

            table.AddRow(row1);

            var row2 = new MyRow()
            {
                A = 1000, B = 1000
            };

            table.AddRow(row2);

            int tableTotal = 0;

            foreach (MyRow row in table.Rows)
            {
                tableTotal += row.A + row.B;
            }

            tableTotal.ShouldBe(2012, "Incorrect tableTotal");
        }
        public void CobolTable_AddRow_AddsCorrectNumberOfRows()
        {
            var table = new CobolTable <MyRow>();

            var row1 = new MyRow()
            {
                A = 10, B = 2
            };

            table.AddRow(row1);

            var row2 = new MyRow()
            {
                A = 1000, B = 1000
            };

            table.AddRow(row2);

            table.Rows.Count.ShouldBe(2, "Incorrect table.Rows.Count");
        }