Skip to content

Running alone the SetColors_Changes_Colors unit test will fail. #2076

@BDisp

Description

@BDisp

Describe the bug
Running all test at once will not fail none. But running alone the SetColors_Changes_Colors on the ConsoleDriverTests will fail on the first Assert.Equal (ConsoleColor.Gray, Console.ForegroundColor);

To Reproduce
Steps to reproduce the behavior:

  1. Go to Test Explorer.
  2. Click on Run All Test.
  3. None off the tests will fail.
  4. Now navigate to the SetColors_Changes_Colors on the ConsoleDriverTests.
  5. Right click on it and select Debug Tests.
  6. The test will fail in the first Assert.Equal (ConsoleColor.Gray, Console.ForegroundColor);

Expected behavior
Not failing on both methods tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingIssues related to testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions