Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Make sure we're doing Splat.ModeDetector.Current.SetInUnitTestRunner(true) once per test project #1732

Description

@jcansdale

Some of our tests appear to be failing depending on the order in which they're run. This is because SetInUnitTestRunner(true) isn't always getting called before a test is executed.

Since we're no longer using Fody, we should add the following to the AssemblyInfo.cs for each of our test projects:

[SetUpFixture]publicclassSplatModeDetectorSetUp{[OneTimeSetUp]publicvoidRunBeforeAnyTests(){Splat.ModeDetector.Current.SetInUnitTestRunner(true);}}

We should also remove IEntryExitDecorator and any other calls to SetInUnitTestRunner(true) in our test projects.

@meaghanlewis It might make sense to do this as part of #1721?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions