public void PressInvokesMethodOnActor() { var method = new Parse("td", "method", null, null); var cells = new Parse("td", "press", null, method); var cellOperation = new Mock<CellOperation>(); var actor = new Fixture(); var actionFixture = new MyActionFixture(actor, cells) {CellOperation = cellOperation.Object}; actionFixture.Press(); cellOperation.Verify(o => o.TryInvoke(actor, method, It.Is<Tree<Cell>>(t => t.IsLeaf), method)); }
[Test] public void PressInvokesMethodOnActor() { var method = new Parse("td", "method", null, null); var cells = new Parse("td", "press", null, method); var cellOperation = new Mock <CellOperation>(); var actor = new Fixture(); var actionFixture = new MyActionFixture(actor, cells) { CellOperation = cellOperation.Object }; actionFixture.Press(); cellOperation.Verify(o => o.TryInvoke(actor, method, It.Is <Tree <Cell> >(t => t.IsLeaf), method)); }
[Test] public void PressInvokesMethodOnActor() { var method = new Parse("td", "method", null, null); var cells = new Parse("td", "press", null, method); var processor = new Mock <CellProcessor>(); var actor = new Fixture(); var actionFixture = new MyActionFixture(actor, cells) { Processor = processor.Object }; actionFixture.Press(); processor.Verify(o => o.Operate <ExecuteOperator>(actor, method, It.Is <Tree <Cell> >(t => t.IsLeaf), method)); }
[Test] public void PressInvokesMethodOnActor() { var method = new Parse("td", "method", null, null); var cells = new Parse("td", "press", null, method); var processor = new Mock<CellProcessor>(); var actor = new Fixture(); var actionFixture = new MyActionFixture(actor, cells) {Processor = processor.Object}; actionFixture.Press(); processor.Verify(o => o.Operate<ExecuteOperator>(actor, method, It.Is<Tree<Cell>>(t => t.IsLeaf), method)); }