public void testThrowExceptionForIncorrectCodeChangingCode() { //throws IncorrectDoorCodeException, CodeMismatchException { IDoor door = createDoorUnderTest(); door.ChangeCode("Dummy", "123", "123"); }
public void testThrowExceptionForMismatchNewCode() { //throws IncorrectDoorCodeException, CodeMismatchException { IDoor door = createDoorUnderTest(); door.ChangeCode(getDefaultDoorCode(), "123", "1a23"); }
public void testChangeCode() { //throws IncorrectDoorCodeException, CodeMismatchException { IDoor door = createDoorUnderTest(); door.ChangeCode(getDefaultDoorCode(), "123", "123"); Assert.IsTrue(door.TestCode("123")); }