public void Test_Constructor_SetsScriptLocation() { Given_settings_ScriptLocation_Returns(location); subject = new BatScriptConfig(name, id, settings.Object, messagePrompt.Object, iconPicker.Object); Assert.AreEqual(location + Path.DirectorySeparatorChar + name + ".bat", 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 BatScriptConfig(name, id, settings.Object, messagePrompt.Object, iconPicker.Object); }