You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test works fine with MSTest.TestAdapter 3.2.2 for net6.0. In 3.3.0 the test fails, Only the NuGet was updated.
Maybe a change based on Merge all implementations of TestContext is required in the TestCorrelator?
[TestMethod]publicvoidMessageDataNullCorrelationIdLogContainsMethodName(){// Arrangeusing(TestCorrelator.CreateContext()){varmsg=newMessage<int>(null!,5,null,null!);// Act_=msg.MessageData;// AssertvarlogContext=TestCorrelator.GetLogEventsFromCurrentContext().ToList();Assert.AreNotEqual(0,logContext.Count,"logContext should contain data");}}
The text was updated successfully, but these errors were encountered:
I don't see any log events being emitted here, but I'm assuming you expect there to be some in either the constructor or the property access. Does this still happen if you log explicitly within the context?
I've done some testing recently with the most up to date versions of MSTest and never reproduced this. I'm going to close this since I never heard back from you.
The following test works fine with MSTest.TestAdapter 3.2.2 for net6.0. In 3.3.0 the test fails, Only the NuGet was updated.
Maybe a change based on Merge all implementations of TestContext is required in the TestCorrelator?
The text was updated successfully, but these errors were encountered: