Exemple #1
0
        public void ShouldUseDefaultWhenNull()
        {
            var input = new TestProjectsInput {
                SuppliedInput = null
            };

            input.Validate().ShouldBeEmpty();
        }
Exemple #2
0
        public void ShouldIgnoreEmptyString()
        {
            var input = new TestProjectsInput {
                SuppliedInput = new[] { "", "", "" }
            };

            input.Validate().ShouldBeEmpty();
        }
Exemple #3
0
        public void ShouldNormalizePaths()
        {
            var paths    = new[] { "/c/root/bla/test.csproj" };
            var expected = new[] { Path.GetFullPath(FilePathUtils.NormalizePathSeparators(paths[0])) };
            var input    = new TestProjectsInput {
                SuppliedInput = paths
            };

            input.Validate().ShouldBe(expected);
        }
Exemple #4
0
        public void ShouldHaveHelpText()
        {
            var target = new TestProjectsInput();

            target.HelpText.ShouldBe(@"Specify the test projects. | default: []");
        }