Exemple #1
0
        public void AssemblyPath_does_not_convert_value_to_a_absolute_path_if_path_is_null_or_empty(string path)
        {
            // ARRANGE
            var sut = new CommandLineHelpOptions()
            {
                AssemblyPath = path
            };

            // ACT / ASSERT
            Assert.Equal(path, sut.AssemblyPath);
        }
Exemple #2
0
        public void OutputDirectory_does_not_convert_value_to_a_absolute_path_if_path_is_null_or_empty(string path)
        {
            // ARRANGE
            var sut = new CommandLineHelpOptions()
            {
                OutputDirectory = path
            };

            // ACT / ASSERT
            Assert.Equal(path, sut.OutputDirectory);
        }
Exemple #3
0
        public void AssemblyPath_converts_value_to_a_absolute_path()
        {
            // ARRANGE
            var sut = new CommandLineHelpOptions()
            {
                AssemblyPath = "some-path"
            };

            // ACT / ASSERT
            Assert.True(Path.IsPathRooted(sut.AssemblyPath));
        }
Exemple #4
0
        public void OutputDirectory_converts_value_to_a_absolute_path()
        {
            // ARRANGE
            var sut = new CommandLineHelpOptions()
            {
                OutputDirectory = "some-path"
            };

            // ACT / ASSERT
            Assert.True(Path.IsPathRooted(sut.OutputDirectory));
        }