コード例 #1
0
ファイル: Context_specs.cs プロジェクト: louissalin/StateUI
        protected override void Context()
        {
            stateMachine = new StateMachine();
            stateMachine.AddState();
            stateMachine.AddState();
            stateMachine.CreatePathFrom.State(1).To.State(2);
            stateMachine.Start();

            sut = new ContextStub(stateMachine, stateMachine.GetState(1));
        }
コード例 #2
0
ファイル: Context_specs.cs プロジェクト: louissalin/StateUI
 protected override void Because()
 {
     childContext = new ContextStub(stateMachine, stateMachine.GetState(2));
     sut.AddChild(childContext);
 }