示例#1
0
            public void WhenSettingsAreEmpty_OnlyCommandIsUsed()
            {
                var fixture = new ResourceHackerFixture
                {
                    Settings = new ResourceHackerSettings()
                };

                var actual = fixture.Run();

                Assert.That(actual.Args, Is.EqualTo("-add"));
            }
示例#2
0
            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);
            }