c++ SetMaterial file error

So I’m trying to set a material but the following line keeps causing the engine to crash and return a file not found error.

static ConstructorHelpers::FObjectFinder DefaultMaterial(TEXT(“Material’/Game/TestMat.TestMat’”));

I’ve tried changing the line to

static ConstructorHelpers::FObjectFinder DefaultMaterial(TEXT(“Material’/Users/Shared/UnrealEngine/4.14/Engine/Content/EditorMaterials/GridMaterial’”));

but that also returns the same error. I guess I don’t understand from the documentation how exactly to call a file in a project from c++.

My TestMat material is just a basic material in my games content folder. Any help with this would be much appreciated!