I think the answer is not black-and-white. Ultimately it will depend greatly on the other resource.
- Is the other site an official site for the framework/language/library or otherwise officially connected to the framework/language/library?
- Is the answer found on a random blog, forum, or other Q&A site?
- Is the answer easily found via searching (high ranking)
Firstly, Stack Overflow is not a replacement for the official documentation (except when the feature is explicitly designed). If the answer is easily found in the documentation for the framework/language/library, then no, it doesn't need to be duplicated here. As Pekka 웃 suggests, we don't need to make the official documentation more difficult to find.
The documentation should never become out of date as the framework/language/library matures, but a Stack Overflow question easily can. We don't need a highly ranked outdated answer that distracts from the official documentation. This also holds true for any FAQ's or Wiki's set up on the official website.
What if the answer is found only on another forum/Q&A/blog, but not on Stack Overflow and is not connected to the official documentation of the language. I don't believe we should be shooting those questions down. Why does the fact that the answer exists elsewhere in the Interwebs, even if it is high ranking in Google, mean that it can't be asked here. How would a user know that the site is trustworthy, or answer is accurate? There's plenty of crap out there and helping filter the crap seems to fit with the goals and ideals of Stack Overflow.
For the testing portion of the question, Stack Overflow is not a replacement for basic testing and experimentation. If you can set up a test case in less time* than it would take to write a good question and wait for a well written answer, then there is virtually no value in the question on Stack Overflow. But if the scenario takes hours to setup and run, and/or is loaded with edge cases that need considered, then having the information in Stack Overflow would be a benefit to the programming community.
To summarize, if the documentation is difficult to find or it out dated, then I see value in a Stack Overflow post. Likewise if the solution is not from an official source, there is also value. The point is to make high quality information more easily found, and if it can't be found or tested easily, or is of unknown quality, then there would be a benefit to having the question here.
* the time component here is hyperbole. The point is that if the test case is quickly set up and the result is easily obtainable with minimal effort, then there doesn't seem to be value in a Q&A pair that would need to be maintained.