public void Test_Constructor_SetsScriptLocation() { Given_settings_ScriptLocation_Returns(location); subject = new PowershellScriptConfig(name, id, settings.Object, messagePrompt.Object, iconPicker.Object); Assert.AreEqual(location + Path.DirectorySeparatorChar + name + ".ps1", subject.ScriptLocation); }
public void Setup() { settings = new Mock <ISettings>(); settings.Setup(s => s.ScriptLocation).Returns(string.Empty); messagePrompt = new Mock <IMessagePrompt>(); iconPicker = new Mock <IIconPicker>(); subject = new PowershellScriptConfig(name, id, settings.Object, messagePrompt.Object, iconPicker.Object); }