public HtmlTestStepRunFormatter()
        {
            var runtime = RuntimeAccessor.Instance;
            var resourcesPath = runtime.ResourceLocator.ResolveResourcePath(new Uri("plugin://Gallio.Reports/Resources/"));
            resourcesUrl = new Uri(resourcesPath);
            cssUrl = new Uri(resourcesUrl, "css");
            imgUrl = new Uri(resourcesUrl, "img");
            jsDir = Path.Combine(resourcesPath, "js");

            cache = new TemporaryDiskCache("Gallio.UI");
            cacheGroup = cache.Groups[Guid.NewGuid().ToString()];
            reportFilePool = new ReportFilePool(cacheGroup, 5);
            attachmentPaths = new HashSet<string>();
        }
 public void ShouldUseTheTempPathWithSpecifiedDirectoryName()
 {
     TemporaryDiskCache cache = new TemporaryDiskCache("Abc");
     Assert.AreEqual(SpecialPathPolicy.For("Abc").GetTempDirectory().FullName,
         cache.CacheDirectoryPath);
 }
 public void ShouldUseTheTempPathWithDefaultDirectoryNameIfNoneSpecified()
 {
     TemporaryDiskCache cache = new TemporaryDiskCache();
     Assert.AreEqual(SpecialPathPolicy.For(TemporaryDiskCache.DefaultCacheDirectoryName).GetTempDirectory().FullName,
         cache.CacheDirectoryPath);
 }