Ejemplo n.º 1
0
 /// <summary>
 /// Removes the corresponding test method node after it has been
 /// removed from the TestClass.
 /// </summary>
 void TestMethodRemoved(object source, TestMethodEventArgs e)
 {
     foreach (TestMethodTreeNode methodNode in Nodes)
     {
         if (methodNode.Text == e.TestMethod.Name)
         {
             Nodes.Remove(methodNode);
             methodNode.Dispose();
             break;
         }
     }
 }
		/// <summary>
		/// Removes the corresponding test method node after it has been
		/// removed from the TestClass.
		/// </summary>
		void TestMethodRemoved(object source, TestMethodEventArgs e)
		{
			foreach (TestMethodTreeNode methodNode in Nodes) {
				if (methodNode.Text == e.TestMethod.Name) {
					Nodes.Remove(methodNode);
					methodNode.Dispose();
					break;
				}
			}
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a new test method tree node to this class node after a new
 /// TestMethod has been added to the TestClass.
 /// </summary>
 void TestMethodAdded(object source, TestMethodEventArgs e)
 {
     AddTestMethodTreeNode(e.TestMethod);
     SortChildNodes();
 }
		/// <summary>
		/// Adds a new test method tree node to this class node after a new
		/// TestMethod has been added to the TestClass.
		/// </summary>
		void TestMethodAdded(object source, TestMethodEventArgs e)
		{
			AddTestMethodTreeNode(e.TestMethod);
			SortChildNodes();
		}