What is the correct value of WITH_EDITOR in a cooked game using the development configuration?

Is it correct for WITH_EDITOR to have a value of 1 in a cooked build using the development configuration?

I wrote a simple function to tell if the game is a cooked build, but it always returns false. Do i need to use the shipping build config? Or is there something wrong, and WITH_EDITOR is supposed to have a value of 0 for cooked builds using the development build config?

bool UTestHelpers::IsCookedBuild()
{
#ifdef WITH_EDITOR
	return false;
#else
	return true;
#endif
}

It should be #if WITH_EDITOR, not #ifdef. WITH_EDITOR is always defined, either 1 or 0.