public TestRun() { TestLists.Add(new TestList() { Id = TestListId, Name = "Results Not in a List", }); }
/// <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(); }