public void Setup()
 {
     var info = new TestRunInformation();
     info.TestChain = TestData.BuildChainWithPrefix("Test");
     info.AddSetup(TestData.BuildChainWithPrefix("Setup"));
     info.AddSetup(TestData.BuildChainWithPrefix("Setup2"));
     items = new List<string>(info.IterateAll());
 }
コード例 #2
0
        public void Setup()
        {
            var info = new TestRunInformation();

            info.TestChain = TestData.BuildChainWithPrefix("Test");
            info.AddSetup(TestData.BuildChainWithPrefix("Setup"));
            info.AddSetup(TestData.BuildChainWithPrefix("Setup2"));
            items = new List <string>(info.IterateAll());
        }
コード例 #3
0
 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.AddSetup(chain);
     information.TestChain = new CallChain("A Test", "Runtime", 12);
     _paths = PathFinder.FindPathsTo(information, "GrandChild").ToList();
 }
コード例 #4
0
        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.AddSetup(chain);
            information.TestChain = new CallChain("A Test", "Runtime", 12);
            _paths = PathFinder.FindPathsTo(information, "GrandChild").ToList();
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 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;
 }