Esempio n. 1
0
        public void Return_InvalidGitRepository_WhenPassedPath_IsNotGitRepository()
        {
            string noGitPath = @"C:\Windows\";

            RepositoryPathValdiator validator = new RepositoryPathValdiator();
            var result = validator.IsInvalid(noGitPath);

            Assert.True(result);
        }
Esempio n. 2
0
        public void Return_OkStatus_WhenPath_isValid()
        {
            string valdiPath = @"C:\Projects\Own\DSP\gitWeb";

            RepositoryPathValdiator validator = new RepositoryPathValdiator();
            var result = validator.IsInvalid(valdiPath);

            Assert.False(result);
        }
Esempio n. 3
0
        public void Return_InvalidPathResult_WhenPassedPath_IsInvalid()
        {
            string invalidPath = @"C\yoyo\xx\ww";

            RepositoryPathValdiator validator = new RepositoryPathValdiator();
            var result = validator.IsInvalid(invalidPath);

            Assert.True(result);
        }