예제 #1
0
        public void testThrowExceptionForIncorrectCodeChangingCode()
        {
            //throws IncorrectDoorCodeException, CodeMismatchException {
            IDoor door = createDoorUnderTest();

            door.ChangeCode("Dummy", "123", "123");
        }
예제 #2
0
        public void testThrowExceptionForMismatchNewCode()
        {
            //throws IncorrectDoorCodeException, CodeMismatchException {
            IDoor door = createDoorUnderTest();

            door.ChangeCode(getDefaultDoorCode(), "123", "1a23");
        }
예제 #3
0
        public void testChangeCode()
        {
//throws IncorrectDoorCodeException, CodeMismatchException {
            IDoor door = createDoorUnderTest();

            door.ChangeCode(getDefaultDoorCode(), "123", "123");
            Assert.IsTrue(door.TestCode("123"));
        }