public void ShouldUseDefaultWhenNull() { var input = new TestProjectsInput { SuppliedInput = null }; input.Validate().ShouldBeEmpty(); }
public void ShouldIgnoreEmptyString() { var input = new TestProjectsInput { SuppliedInput = new[] { "", "", "" } }; input.Validate().ShouldBeEmpty(); }
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); }
public void ShouldHaveHelpText() { var target = new TestProjectsInput(); target.HelpText.ShouldBe(@"Specify the test projects. | default: []"); }