Skip to content
Discussion options

You must be logged in to vote

Seems like I just forgot to wrap the logging in an actual test. Rewriting it as such worked once I managed to get Rider to run the test from a fresh build and not a stale one:

public class OutputScenarios
{
    private readonly ITestOutputHelper _testOutputHelper;

    public OutputScenarios(ITestOutputHelper testOutputHelper)
    {
        _testOutputHelper = testOutputHelper;
    }

    [Scenario]
    public void WriteToOutputScenario()
    {
        "Write to the ITestOutputHelper".x(() =>
        {
            _testOutputHelper.WriteLine("Test");
        });
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asbjornu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant