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

Incorrect error message #75

Open
nakov opened this issue Apr 21, 2021 · 0 comments
Open

Incorrect error message #75

nakov opened this issue Apr 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@nakov
Copy link

nakov commented Apr 21, 2021

In the .NET Core Project Test strategy in the judge, when we create a unit test class, holding more than 1 test methods, we get an error message:

Failing tests not captured properly, please contact an administrator

This error message, should be improved, to help the users fix the problem easier, e.g.

Failing tests not captured properly, please contact an administrator. Each unit test should have exactly one [Test] method. Do you have multiple test methods in a single class?

This is the line of code, which displays this incorrect message:

throw new ArgumentException("Failing tests not captured properly, please contact an administrator");

This is an example test class, which causes the problem:

using NUnit.Framework;


namespace Tests
{
    class TestClass
    {
        [Test]
        public void FirstTest()
        {
            Assert.Pass();
        }

        [Test]
        public void SecondTest()
        {
            Assert.Pass();
        }
    }
}
@nakov nakov added the bug Something isn't working label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant