I am trying to test a multi-threaded I / O class using MbUnit. My goal is for the test fixture constructor to execute 3 times, once for each row in the class. Then, for each instance, run tests on parallel threads several times.
However, Icarus explodes an “out of range index” on TaskRunner. I cannot get a full stack, it spawns message windows too quickly.
What am I doing wrong, or is it an error in MbUnit / Gallio?
using System; using System.Collections.Generic; using System.Text; using Gallio.Framework; using MbUnit.Framework; using MbUnit.Framework.ContractVerifiers; using System.IO; namespace ImageResizer.Plugins.DiskCache.Tests { [TestFixture] [Row(0,50,false)] [Row(0,50,true)] [Row(8000,100,true)] public class CustomDiskCacheTest { public CustomDiskCacheTest(int subfolders, int totalFiles, bool hashModifiedDate) { char c = System.IO.Path.DirectorySeparatorChar; string folder = System.IO.Path.GetTempPath().TrimEnd(c) + c + System.IO.Path.GetRandomFileName(); cache = new CustomDiskCache(folder,subfolders,hashModifiedDate); this.quantity = totalFiles; for (int i = 0; i < quantity;i++){ cache.GetCachedFile(i.ToString(),"test",delegate(Stream s){ s.WriteByte(32);
source share