Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an Exception if TestClass attribute is specified along the STATestClass #4

Open
huserben opened this issue May 30, 2018 · 0 comments

Comments

@huserben
Copy link

Hi

I just encountered a problem by making the mistake of adding the STATestClass attribute along side of the "regular" TestClass.

So following situation:

 [STATestClass]
  [TestClass]
  public class UnitTest1
  {
     [TestMethod]
     public void TestMethod1()
     {
        var staTest = new MainWindow();
     }
  }

In the above case it's working fine. If we exchange the order and we have:

   [TestClass]
   [STATestClass]

It won't work anymore.
It would be good if the situation could be detected as in fact we only need one of the attributes. So ideally we would throw an exception with a meaningful error message so this problem is easily detected. So other people don't wonder why it's not working for them like for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant