0

I am trying to implement an unit test in my Windows Phone 8 application however the test runner wont recognize the tests. I am following this tutorial.

Unit Testing In Windows Phone 8 The Basics

using Microsoft.Phone.Testing;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace PPS.Tests 
{
[TestClass]
class SampleTest
{
    [Tag("SimpleTests")]
    [TestMethod]
    public void SimpleTest()
    {
        int a = 1;
        int b = 2;

        int c = a + b;

        Assert.IsTrue(c == 4);
    }
}
}

enter image description here

Joel Dean
  • 2,444
  • 5
  • 32
  • 50

1 Answers1

0

I'm pretty sure your test class needs to public, not interal (which it will be default) i.e.:

public class SampleTest

Paul Annetts
  • 9,554
  • 1
  • 27
  • 43