public void an_exception_is_thrown() { string filename = Path.GetTempFileName(); File.WriteAllText(filename, "this really is not a valid snapshot."); _projection = new CouplingCountAndNameProjection(); _projection.LoadFromSnapshot(filename); }
public void an_exception_is_thrown() { string filename = Path.GetTempFileName(); File.WriteAllText(filename, "this really is not a valid snapshot."); _projection = new CouplingCountAndNameProjection(); _projection.LoadFromSnapshot(filename); }
public void an_exception_is_thrown() { const string filename = "C:\\thisreallyshouldntexist.whatever"; var info = new TestRunInformation { Name = "TESTNAME", TestChain = TestData.BuildChainWithPrefix("Test") }; _projection = new CouplingCountAndNameProjection(); _projection.LoadFromSnapshot(filename); }
public void an_exception_is_thrown() { const string filename = "C:\\thisreallyshouldntexist.whatever"; var info = new TestRunInformation { Name = "TESTNAME", TestChain = TestData.BuildChainWithPrefix("Test") }; _projection = new CouplingCountAndNameProjection(); _projection.LoadFromSnapshot(filename); }
public void Setup() { var filename = Path.GetTempFileName(); var info = new TestRunInformation { Name = "TESTNAME", TestChain = TestData.BuildChainWithPrefix("Test") }; _projection = new CouplingCountAndNameProjection(); _projection.Index(info); _projection.SnapShotTo(filename, 2048); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestRoot")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild1")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild2")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild3")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestGrandChild")); _projection = new CouplingCountAndNameProjection(); position = _projection.LoadFromSnapshot(filename); }
public void Setup() { var filename = Path.GetTempFileName(); var info = new TestRunInformation { Name = "TESTNAME", TestChain = TestData.BuildChainWithPrefix("Test") }; _projection = new CouplingCountAndNameProjection(); _projection.Index(info); _projection.SnapShotTo(filename, 2048); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestRoot")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild1")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild2")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild3")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestGrandChild")); _projection = new CouplingCountAndNameProjection(); position = _projection.LoadFromSnapshot(filename); }