public void ReportPosition_WhenStatusIsOff() { var robot = new ToyRobot(new TableSurface(), _exceptionFactory); Exception ex = Assert.Throws <SafeException>(() => robot.ReportPosition()); Assert.Equal("please place this robot first", ex.Message); }