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

An inconclusive in a test initialize fails the test if it has an ExpectedException #136

Closed
AbhitejJohn opened this issue Apr 7, 2017 · 0 comments
Assignees
Milestone

Comments

@AbhitejJohn
Copy link
Contributor

Description

If a test is reported inconclusive in its TestInitialize but is adorned with a ExpectedException attribute, it fails.

Steps to reproduce

  1. Create a test project with the following code:
        [TestInitialize]
        public void TestInit()
        {
            Assert.Inconclusive();
        }

        [TestMethod]
        [ExpectedException(typeof(NullReferenceException))]
        public void TestMethod1()
        {
        }
  1. Run the test.

Expected behavior

The test is inconclusive.

Actual behavior

The test fails.

Environment

MSTest.TestFramework: 1.1.14.
MSTest.TestAdapter: 1.1.14.

AbhitejJohn added a commit to AbhitejJohn/testfx that referenced this issue Apr 9, 2017
@AbhitejJohn AbhitejJohn self-assigned this Apr 9, 2017
@AbhitejJohn AbhitejJohn modified the milestone: S116 Apr 9, 2017
singhsarab pushed a commit to singhsarab/testfx that referenced this issue Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant