Exemplo n.º 1
0
 public void TestInvoke()
 {
     FixtureWithExecutableMethod.Calls = 0;
     Parse cell = TestUtils.CreateCell("do");
     service = new Service.Service();
     var fixture = new FixtureWithExecutableMethod {Processor = service};
     fixture.Processor.Execute(fixture, new CellRange(cell, 1), new CellTree());
     Assert.AreEqual(1, FixtureWithExecutableMethod.Calls);
 }
Exemplo n.º 2
0
        public void TestInvoke()
        {
            FixtureWithExecutableMethod.Calls = 0;
            Parse cell = TestUtils.CreateCell("do");

            service = new Service.Service();
            var fixture = new FixtureWithExecutableMethod {
                Processor = service
            };

            fixture.CellOperation.TryInvoke(fixture, new CellRange(cell, 1));
            Assert.AreEqual(1, FixtureWithExecutableMethod.Calls);
        }