Example #1
0
        public void it_should_return_opts_with_debug_tests_empty()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.DebugTests = new string[0];

            actual.ShouldBeEquivalentTo(expected);
        }
Example #2
0
        public void it_should_return_opts_with_tags_null()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.Tags = null;

            actual.ShouldBeEquivalentTo(expected);
        }
Example #3
0
        public void it_should_return_opts_with_debug_channel_false()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.DebugChannel = false;

            actual.ShouldBeEquivalentTo(expected);
        }
Example #4
0
        public void it_should_return_opts_with_formatter_options_empty()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.FormatterOptions = new Dictionary <string, string>();

            actual.ShouldBeEquivalentTo(expected);
        }
Example #5
0
        public void it_should_return_opts_with_failfast_false()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.FailFast = false;

            actual.ShouldBeEquivalentTo(expected);
        }
Example #6
0
        public void it_should_return_opts_with_class_name_null(string[] args)
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.ClassName = null;

            actual = parser.Parse(args);

            actual.ShouldBeEquivalentTo(expected);
        }
Example #7
0
        public void it_should_return_nspec_opts_empty()
        {
            var expected = new NSpecCommandLineOptions()
            {
                FormatterOptions = new Dictionary <string, string>(),
                DebugTests       = new string[0],
                UnknownArgs      = new string[0],
            };

            actual.ShouldBeEquivalentTo(expected);
        }
Example #8
0
        public void it_should_return_nspec_opts_with_unknown_args()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            expected.UnknownArgs = new string[]
            {
                "unknown1",
                "unknown2",
                "unknown3",
            };

            actual.ShouldBeEquivalentTo(expected);
        }
Example #9
0
        public void setup()
        {
            var allDotNetOptions = new DotNetCommandLineOptions(Data.DotNet.allOptions);

            var allNSpecOptions = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            allOptions = new LaunchOptions()
            {
                DotNet      = allDotNetOptions,
                NSpec       = allNSpecOptions,
                UnknownArgs = someUnknownArgs,
            };

            parser = new ArgumentParser();

            actual = parser.Parse(allArguments);
        }
Example #10
0
        public void it_should_return_nspec_opts_only()
        {
            var expected = new NSpecCommandLineOptions(Data.NSpec.allOptions);

            actual.ShouldBeEquivalentTo(expected);
        }