Can't get Resources.Load() to work on Unity 5

I’ve read the manual and tons of unity answers, forum postings - but I can’t get Resources.Load() to work for me, it always returns a null result.

I’ve boiled it down to the most simple test case:

function TestLoad() {
    TestText = Resources.Load("test") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("test.txt") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("/test") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("/test.txt") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("Resources/test") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("Resources/test.txt") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("/Resources/test") as String;
    Debug.Log(TestText);
    TestText = Resources.Load("/Resources/test.txt") as String;
    Debug.Log(TestText);
}

and all I get is a bunch of nulls. I’ve got a test.txt file in the Resources folder and nothing I do gets Unity to actually load it. What am I missing?

And since eventually I’m going to load textures, etc. one more generic question: How do I debug Resources.Load() ? Where does it throw its errors so I can at least find out if it doesn’t find the file, or can’t read the contents, or can’t convert them to the type I want or whatever else makes it unhappy?

as TextAsset ) .text