I ran into this problem because the class file where I defined the new class and namespace was Tests
vs Tests.cs
renamed to include .cs
and everything worked perfectly. VisualStudio was not helping, because in the class it figured out what I was doing and did not give any errors.