public void TreeNodeStyle_Method_Reset () { TreeNodeStyle tns = new TreeNodeStyle (); tns.BorderStyle = BorderStyle.Double; tns.BorderWidth = 3; tns.ChildNodesPadding = 4; tns.Height = 5; tns.HorizontalPadding = 6; tns.ImageUrl = "ImageUrl"; tns.NodeSpacing = 7; tns.VerticalPadding = 8; tns.Width = 9; Assert.AreEqual (BorderStyle.Double, tns.BorderStyle, "BorderStyle1"); Assert.AreEqual (3.0, tns.BorderWidth.Value, "BorderWidth1"); Assert.AreEqual (4.0, tns.ChildNodesPadding.Value, "ChildNodesPadding1"); Assert.AreEqual (5.0, tns.Height.Value, "Height1"); Assert.AreEqual (6.0, tns.HorizontalPadding.Value, "HorizontalPadding1"); Assert.AreEqual ("ImageUrl", tns.ImageUrl, "ImageUrl1"); Assert.AreEqual (7.0, tns.NodeSpacing.Value, "NodeSpacing1"); Assert.AreEqual (8.0, tns.VerticalPadding.Value, "VerticalPadding1"); Assert.AreEqual (9.0, tns.Width.Value, "Width1"); tns.Reset (); Assert.AreEqual (0.0, tns.BorderWidth.Value, "BorderWidth2"); Assert.AreEqual (0.0, tns.ChildNodesPadding.Value, "ChildNodesPadding2"); Assert.AreEqual (0.0, tns.Height.Value, "Height2"); Assert.AreEqual (0.0, tns.HorizontalPadding.Value, "HorizontalPadding2"); Assert.AreEqual ("", tns.ImageUrl, "ImageUrl2"); Assert.AreEqual (0.0, tns.NodeSpacing.Value, "NodeSpacing2"); Assert.AreEqual (0.0, tns.VerticalPadding.Value, "VerticalPadding2"); Assert.AreEqual (0.0, tns.Width.Value, "Width2"); }