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); }
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); }