public void a_corrupt_database_exception_is_thrown()
 {
     filename = Path.GetTempFileName();
     CreateJunkFile(filename);
     var db = new TestRunInformationDatabase(filename);
     db.LoadAll();
 }
 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 = new TestRunInformationDatabase(filename);
     db.LoadAll();
 }
Пример #4
0
 public ProfilerData(string filename, IProfilerDataParser parser, IContextChangeFinder finder, decimal compressRatio)
 {
     _assembler = new TestRunInfoAssembler(finder);
     _database = new TestRunInformationDatabase(filename);
     _counts = new CouplingCountAndNameProjection();
     _finder = finder;
     _filename = filename;
     _parser = parser;
     _compressRatio = compressRatio;
 }
 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();
     db = new TestRunInformationDatabase(filename);
     db.LoadAll();
 }