public void SettingsShouldDefaultCliFile() { _fixture.FileSystem.CreateFile(KarmaSettings.DefaultLocalKarmaCli); _fixture.Settings = new KarmaSettings { ConfigFile = _configFile, RunMode = KarmaRunMode.Local }; var result = _fixture.Run(); result.Args.ShouldBe($"\"{KarmaSettings.DefaultLocalKarmaCli}\" init \"karma.conf.js\""); }
public void LocalRunnerRequiresCorrectLocalRunMode() { _localFixture.Settings = new KarmaStartSettings { ConfigFile = _configFile }; Should.Throw <InvalidOperationException>(() => _localFixture.Run()); }