Esempio n. 1
0
        public void GitRepository_BlankAppVeyorVariable_LocalGit()
        {
            var opts      = Substitute.For <ICommandOptions>();
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateGitRepository().Should().BeOfType <LocalGit>();
        }
Esempio n. 2
0
        public void GitRepository_AppVeyorVariableExists_LocalGit()
        {
            Environment.SetEnvironmentVariable("APPVEYOR_JOB_ID", "12345");

            var opts      = Substitute.For <ICommandOptions>();
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateGitRepository().Should().BeOfType <AppVeyorGit>();
        }