public void TestXmlFileNameGenerationNewOutputXmlFileForEachRun()
        {
            var logger   = Substitute.For <ITestLogger>();
            var settings = new AdapterSettings(logger);

            settings.Load("<RunSettings><NUnit><TestOutputXml>/my/work/dir</TestOutputXml><NewOutputXmlFileForEachRun>true</NewOutputXmlFileForEachRun></NUnit></RunSettings>");
            var sut = new NUnitEngineAdapter();

            sut.InitializeSettingsAndLogging(settings, logger);
            string path = sut.GetXmlFilePath("c:/", "assembly", "xml");

            Assert.That(path, Is.EqualTo("c:/assembly.1.xml"));
        }
 public void NullContextThrowsException()
 {
     Assert.That(() => _settings.Load((IDiscoveryContext)null), Throws.ArgumentNullException);
 }