Help how do I unit test, everything gives an error?

Hello, I want to add unit tests to my Forms app. The app is made with the MVVM Pattern. I only have a simple unit test like:

`
[ Test() ]

    public void TestCase()
    {
        OrderListViewModel o = new OrderListViewModel();
        Assert.AreNotEqual(o, "");
    }

`

When running the test everything in my App solution will give an error. The errors are mostly "Error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (App.Tests)"

I am using VS Mac and my testing framework is nunit. Does anyone know why I get all these errors? When running the app everything works fine.

Sign In or Register to comment.