コード例 #1
0
 public void Pass_when_checking_sequence_with_multiple_substitutes()
 {
     Received.This(() => _ignition.TurnRight())
     .Then(() => _engine.Start())
     .Then(() => _engine.Rev())
     .Then(() => _ignition.TurnLeft())
     .Then(() => _engine.Stop());
 }
コード例 #2
0
        public void SetUp()
        {
            _engine   = Substitute.For <IEngine>();
            _ignition = Substitute.For <IIgnition>();

            _ignition.TurnRight();
            _engine.Start();
            _engine.Rev();
            _ignition.TurnLeft();
            _engine.Stop();
        }
コード例 #3
0
        public void SetUp()
        {
            _engine = Substitute.For<IEngine>();
            _ignition = Substitute.For<IIgnition>();

            _ignition.TurnRight();
            _engine.Start();
            _engine.Rev();
            _ignition.TurnLeft();
            _engine.Stop();
        }