예제 #1
0
    public void ReadyForNextGroupShouldCreateGroupToAdd()
    {
        IGridState readyFoNextGroupState = new ReadyForNextGroupState(setting, gridMock, groupFactoryMock, Substitute.For <OnDeleteEndEventHandler>());

        gridMock.AddGroup(Arg.Any <IGroup>()).Returns(true);

        readyFoNextGroupState.OnUpdate();
        groupFactoryMock.Received().Create(setting);
        gridMock.Received().SetState(GridStates.OnControlGroup);
    }
예제 #2
0
 public void FactoryShouldReceiveCreateWhenPrepare()
 {
     groupStock.Prepare(setting);
     groupFactory.Received(3).Create(setting);
 }