Exemplo n.º 1
0
        public void ReadOpp()
        {
            var reader = new TestReader(1);
            var writer = new TestWriter();
            var opp    = new ReadOperation(_t, reader, writer);

            opp.Execute();
            Assert.AreEqual(new Record(1, 2, 3), writer.Output);
        }
Exemplo n.º 2
0
        public void ReadTable()
        {
            // TODO: TestReader(null) creates a reader with empty arguments list
            var reader = new TestReader(null, null);
            var writer = new TestWriter();
            var opp    = new ReadOperation(_t, reader, writer);

            opp.Execute();
            Assert.AreEqual(_t, writer.Output);
        }