public void walkInTest() { for (int x = 0; x < 2; x++) { testDetective.walkInDirection = x; try{ testDetective.walkIn(); Assert.Pass(); }catch (Exception e) { } } }