SeanFeldman / NUnitWithASB.TextExecutionContext.Repro

NUnit TestExecutionContext is null when running ASB callback

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NUnit TestExecutionContext is null when running ASB callback

NUnit 3.7.0 has introduced a controlled change on how TestExecutionContext is returned

With WindowsAzure.ServiceBus ASB client, message pumps are executed as separate threads, so any assertion would be considered to be outside of the testing thread. This repro demonstrates that.

Questions:

  1. Should NUnit assumption be challenged?
  2. What does ASB Client do to cause CallContext.GetData(CONTEXT_KEY) to be null?

About

NUnit TestExecutionContext is null when running ASB callback


Languages

Language:C# 100.0%