The ConsoleRunner detects whether or not it is running under TeamCity to determine whether to run with the TeamCityListener or the regular ConsoleListener.