public void Setup() { var info = new TestRunInformation(); info.TestChain = TestData.BuildChainWithPrefix("Test"); info.AddTearDown(TestData.BuildChainWithPrefix("TD")); info.AddTearDown(TestData.BuildChainWithPrefix("TD2")); items = new List<string>(info.IterateAll()); }
public void Setup() { var info = new TestRunInformation(); info.TestChain = TestData.BuildChainWithPrefix("Test"); info.AddTearDown(TestData.BuildChainWithPrefix("TD")); info.AddTearDown(TestData.BuildChainWithPrefix("TD2")); items = new List <string>(info.IterateAll()); }
public void SetUp() { var chain = new CallChain("Root", "RootR", 1); var c = new CallChain("Child1", "Child1R", 2); chain.AddChild(c); chain.AddChild(new CallChain("Child2", "Child2R", 3)); var child = new CallChain("Child3", "Child3R", 4); child.AddChild(new CallChain("GrandChild", "GrandChildR", 5)); chain.AddChild(child); var information = new TestRunInformation { Name = "test", }; information.AddTearDown(chain); information.TestChain = new CallChain("A Test", "runtime", 332); _paths = PathFinder.FindPathsTo(information, "GrandChild").ToList(); }
private TestRunInformation ReadInformationBody(BinaryReader reader, string name) { var setups = reader.ReadInt32(); var teardowns = reader.ReadInt32(); var hasTest = reader.ReadBoolean(); var ret = new TestRunInformation { Name = name }; for (int i = 0; i < setups; i++) { ret.AddSetup(ReadChainItem(reader)); } for (int i = 0; i < teardowns; i++) { ret.AddTearDown(ReadChainItem(reader)); } if (hasTest) { ret.TestChain = ReadChainItem(reader); } return(ret); }
private TestRunInformation ReadInformationBody(BinaryReader reader, string name) { var setups = reader.ReadInt32(); var teardowns = reader.ReadInt32(); var hasTest = reader.ReadBoolean(); var ret = new TestRunInformation {Name = name}; for (int i = 0; i < setups; i++) { ret.AddSetup(ReadChainItem(reader)); } for (int i = 0; i < teardowns; i++) { ret.AddTearDown(ReadChainItem(reader)); } if(hasTest) ret.TestChain = ReadChainItem(reader); return ret; }