public void HandleMotorPulseTest() { this.Maker.FirstConveyor.Belt.Add(Biscuit.Create(true, true, false)); Action action = () => BucketManager.HandleMotorPulse( null, new OnMotorPulseEventArgs { Maker = this.Maker } ); action.Should().NotThrow(); var biscuit = this.Maker.FirstBucket.Biscuits.FirstOrDefault(); biscuit.Should().NotBeNull(); biscuit.IsExtruded.Should().BeTrue(); biscuit.IsStamped.Should().BeTrue(); biscuit.IsDone.Should().BeTrue(); }