public void SetUp()
 {
     filename = Path.GetTempFileName();
     db = new TestRunInformationDatabase(filename);
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
     db.Compress();
 }
 public void SetUp()
 {
     filename = Path.GetTempFileName();
     db = new TestRunInformationDatabase(filename);
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test2", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test3", "test") });
     db.TakeSnapshot();
     db = new TestRunInformationDatabase(filename);
     db.LoadWithSnapshot();
 }
 public void a_corrupted_database_exception_is_thrown()
 {
     filename = Path.GetTempFileName();
     db = new TestRunInformationDatabase(filename);
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test2", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test3", "test") });
     db.TakeSnapshot();
     File.Delete(filename + ".idx");
     db = new TestRunInformationDatabase(filename);
     db.LoadWithSnapshot();
 }
 public void a_corrupted_database_exception_is_thrown()
 {
     filename = Path.GetTempFileName();
     db = new TestRunInformationDatabase(filename);
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test2", "test") });
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test3", "test") });
     db.TakeSnapshot();
     File.Delete(filename + ".idx");
     File.Copy(filename, filename + ".idx"); //copying original profiler db over the top should cause some issues
     db = new TestRunInformationDatabase(filename);
     db.LoadWithSnapshot();
 }
 public void SetUp()
 {
     filename = Path.GetTempFileName();
     projection = new TestProjection();
     db = new TestRunInformationDatabase(filename);
     db.AttachProjection(projection);
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
 }
 public void SetUp()
 {
     filename = Path.GetTempFileName();
     db = new TestRunInformationDatabase(filename);
     db.AddNewEntries(new[] { TestData.BuildTestInformatonFor("Test1", "test") });
     db.RemoveEntryIfExist("Test1");
     db = new TestRunInformationDatabase(filename);
     db.LoadAll();
 }