Ejemplo n.º 1
0
		public void Defaults ()
		{
			DataGridViewLinkCell cell = new DataGridViewLinkCell ();

			Assert.AreEqual (Color.Red, cell.ActiveLinkColor, "A1");
			Assert.AreEqual (LinkBehavior.SystemDefault, cell.LinkBehavior, "A2");
			Assert.AreEqual (Color.FromArgb (0, 0, 255), cell.LinkColor, "A3");
			Assert.AreEqual (false, cell.LinkVisited, "A4");
			Assert.AreEqual (true, cell.TrackVisitedState, "A5");
			Assert.AreEqual (false, cell.UseColumnTextForLinkValue, "A6");
			Assert.AreEqual (Color.FromArgb (128, 0, 128), cell.VisitedLinkColor, "A7");
			
			Assert.AreEqual ("DataGridViewLinkCell { ColumnIndex=-1, RowIndex=-1 }", cell.ToString (), "A8");
		}