public void Copy() { // Arrange var control = GetControl(ControlFormTests.GetControlForm()); // Act var controlCopy = Control.Copy(control); // Assert AssertIsCopy(control, controlCopy); }
public void FromConfig() { // Arrange var control = GetControl(ControlFormTests.GetControlForm()); // Act var controlFromConfig = Control.FromConfig(control.ControlPlugin, control.GetConfig(), control.Log); // Assert AssertIsCopy(control, controlFromConfig); }
public void Copy() { // Arrange var group = GetGroup(ControlFormTests.GetControlForm()); // Act var groupCopy = Group.Copy(group); // Assert AssertIsCopy(group, groupCopy); }
public void FromConfig() { // Arrange var group = GetGroup(ControlFormTests.GetControlForm()); // Act var groupCopy = Group.FromConfig(group.ControlPlugins, group.GetConfig(), false); // Assert AssertIsCopy(group, groupCopy); }
public void FromLocation() { // Arrange var plugin = ControlFormTests.GetControlForm().ControlPlugins.First(); var location = new Point(1, 2); // Act var control = Control.FromLocation(plugin, location, false); // Assert Assert.AreSame(plugin, control.ControlPlugin); Assert.AreEqual(location, control.Location); }
public void FromLocation() { // Arrange var controlPlugins = ControlFormTests.GetControlForm().ControlPlugins; var location = new Point(1, 2); // Act var group = Group.FromLocation(controlPlugins, location); // Assert Assert.AreSame(controlPlugins, group.ControlPlugins); Assert.AreEqual(location, group.Location); }