Esempio n. 1
0
        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\"");
        }
Esempio n. 2
0
        public void LocalRunnerRequiresCorrectLocalRunMode()
        {
            _localFixture.Settings = new KarmaStartSettings
            {
                ConfigFile = _configFile
            };

            Should.Throw <InvalidOperationException>(() => _localFixture.Run());
        }