Esempio n. 1
0
 public TestRun()
 {
     TestLists.Add(new TestList()
     {
         Id   = TestListId,
         Name = "Results Not in a List",
     });
 }
Esempio n. 2
0
            /// <summary>
            /// Stores property values in the respective elements, clears any
            /// lookup dictionaries.
            /// </summary>
            private void FinalizeContent()
            {
                Times.SetAttributeValue("creation", ToDateString(Created));
                Times.SetAttributeValue("queuing", ToDateString(Created));
                Times.SetAttributeValue("start", ToDateString(Started));
                Times.SetAttributeValue("finish", ToDateString(Finished));

                // Create test lists
                foreach (string list in _testLists.Keys)
                {
                    SimpleXElement test = CreateElement("TestList");
                    test.SetAttributeValue("name", list);
                    test.SetAttributeValue("id", _testLists[list].ToString());
                    TestLists.Add(test);
                }

                // Reclaim some of the memory used for element lookups
                _testLists.Clear();
            }