public void Step_CurrentPositionIncreases() { _model = SecurityScanner.CreateModel(Resources.ExampleSecurityScanner); _systemUnderTest = new SecurityScannerTraveller(_model); _systemUnderTest.Advance(); Assert.AreEqual(0, _systemUnderTest.CurrentPosition); }
public void Step_ReturnsPenaltyIfCaught() { _model = SecurityScanner.CreateModel(Resources.ExampleSecurityScanner); _systemUnderTest = new SecurityScannerTraveller(_model); _systemUnderTest.CurrentPosition = 3; var penalty = _systemUnderTest.Advance(); Assert.AreEqual(16, penalty); }