private void AppendTestClassTitle([NotNull] IncludedTestClass test) { XmlElement row = CreateTableRow(); XmlElement cell = CreateTableCell(test.Title, 3, test.Obsolete ? "obsoleteTitle" : "title"); row.AppendChild(cell); cell.AppendChild(CreateAnchor(test.Key)); _htmlTable.AppendChild(row); }
public void IncludeTest(Type testType, int constructorIndex) { var newTestClass = false; IncludedTestClass testClass; if (!_includedTestClasses.TryGetValue(testType, out testClass)) { testClass = new IncludedTestClass(testType); if (!_includeObsolete && testClass.Obsolete) { return; } if (testClass.InternallyUsed) { return; } // this test class is to be added, if the constructor is not obsolete newTestClass = true; } if (testClass.Obsolete) { return; } IncludedTestConstructor testConstructor = testClass.CreateTestConstructor(constructorIndex); if (!_includeObsolete && testConstructor.Obsolete) { return; } if (testConstructor.InternallyUsed) { return; } testClass.IncludeConstructor(testConstructor); if (newTestClass) { _includedTestClasses.Add(testType, testClass); } }
public TestClassIndexEntry([NotNull] IncludedTestClass includedTestClass) : base(includedTestClass) { }