public void WhenSettingsAreEmpty_OnlyCommandIsUsed() { var fixture = new ResourceHackerFixture { Settings = new ResourceHackerSettings() }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("-add")); }
public void WhenOpenIsSet_CommandAndOpenIsUsed() { var fixture = new ResourceHackerFixture { Settings = new ResourceHackerSettings { Open = "somewhere.exe" } }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo($"-add -open \"{GetAbsolutePath(fixture.Settings.Open)}\"").IgnoreCase); }