public void ApplyTestBasicNames() { var form = new Form(); Button button = new Button() { Name = "button1" }; form.Controls.Add(button); Label label = new Label() { Name = "label1" }; form.Controls.Add(label); form.ApplyFormCss(@" #button1 { Height:50; Width:200; Text: ""test""; } #label1 { ForeColor: Color.Red; Text: ""test""; Location: new Point(10, 10); } " ); Assert.AreEqual(50, button.Height, "Height should be 50"); Assert.AreEqual(200, button.Width, "Width should be 200"); Assert.AreEqual("test", button.Text, "Text should be 'test'"); Assert.AreEqual("test", label.Text, "Text should be 'test'"); Assert.AreEqual(Color.Red, label.ForeColor, "Color should be red"); Assert.AreEqual(new Point(10, 10), label.Location, "Locaton should be '10, 10'"); }