Exemple #1
0
		public void MethodToString ()
		{
			TreeView tv = new TreeView ();

			Assert.AreEqual (@"System.Windows.Forms.TreeView, Nodes.Count: 0", tv.ToString (), "A1");

			tv.Nodes.Add ("A");
			tv.Nodes.Add ("B");

			Assert.AreEqual (@"System.Windows.Forms.TreeView, Nodes.Count: 2, Nodes[0]: TreeNode: A", tv.ToString (), "A2");
		}