# How do I set up unit tests in Unity?

I have followed the Unity Test Framework documentation to create an EditMode test assembly and a test script. When I try to test a function like Utils.SomeMethod(), the class is not recognized.

My IDE gives me the option to Reference Assembly-CSharp and use Utils which seems to successfully import the class as I gain autocomplete ability on the function names. But as soon as I try to run the test, the text changes back to red and I get a message that The name Utils does not exist in the current context.

What do I need to do to be able to test my class?

You should create an Assembly Definition for your main code. By default, Unity creates a predefined one called Assembly-CSharp, but this can't be manually referenced. The docs give a good understanding of what Assembly Definitions are.