I have the following test:
[Test]
public void RetrieveWrongURL()
{
Debug.WriteLine("In RetrieveWrongURL");
Console.WriteLine("In RetrieveWrongURL");
Assert.Throws<IncorrectUrlSuppliedException>(() => mRetriever.doSomething("https://someWrong.url"));
}
When I am running the test, in the Output
window I am getting:
[05/01/2018 10:23:40 Informational] ------ Run test started ------
[05/01/2018 10:23:41 Informational] NUnit Adapter 3.9.0.0: Test execution started
[05/01/2018 10:23:41 Informational] Running selected tests in Z:\path\to\my\dll\MyDll.dll
[05/01/2018 10:23:41 Informational] NUnit3TestExecutor converted 3 of 3 NUnit test cases
[05/01/2018 10:23:42 Informational] NUnit Adapter 3.9.0.0: Test execution complete
[05/01/2018 10:23:42 Informational] ========== Run test finished: 1 run (0:00:02.0995689) ==========
How can I write anything to the output window?