public void should_replace_colors_directly() { var action = new ColorReplacerAction(config); action.ActionToApply.Invoke(beforeLabel); Assert.AreEqual(afterLabel.ForeColor, beforeLabel.ForeColor); Assert.AreEqual(afterLabel.BackColor, beforeLabel.BackColor); Assert.AreEqual(afterLabel.BorderColor, beforeLabel.BorderColor); }