Ejemplo n.º 1
0
        public void ShouldHaveProperties()
        {
            var sut = new ThresholdOption();

            sut.Template.Should().NotBeEmpty();
            sut.Description.Should().NotBeEmpty();
        }
Ejemplo n.º 2
0
        public void Value_ShouldReturnValue()
        {
            var sut = new ThresholdOption();

            sut.ReceiveValue("80.51");
            sut.Value.Should().Be(0.8051f);
        }
Ejemplo n.º 3
0
        public void NoValue_ShouldReturnDefaultValue()
        {
            var sut = new ThresholdOption();

            sut.ReceiveValue(null);
            sut.Value.Should().Be(0.9f);
        }
Ejemplo n.º 4
0
        public ConsoleReportCommand(
            WorkingDirectoryOption workingDirectoryOption,
            CoverageLoadedFileOption coverageLoadedFileOption,
            ThresholdOption thresholdOption)
            : base(_name, _description)
        {
            _coverageLoadedFileOption = coverageLoadedFileOption;
            _thresholdOption          = thresholdOption;

            Options = new IOption[]
            {
                workingDirectoryOption,
                coverageLoadedFileOption,
                thresholdOption
            };
        }
Ejemplo n.º 5
0
        public NCoverReportCommand(
            WorkingDirectoryOption workingDirectoryOption,
            CoverageLoadedFileOption coverageLoadedFileOption,
            NCoverOutputOption nCoverOutputOption,
            ThresholdOption thresholdOption)
            : base(_name, _description)
        {
            _coverageLoadedFileOption = coverageLoadedFileOption;
            _thresholdOption          = thresholdOption;
            _nCoverOutputOption       = nCoverOutputOption;

            Options = new IOption[]
            {
                workingDirectoryOption,
                _coverageLoadedFileOption,
                _thresholdOption,
                _nCoverOutputOption
            };
        }
Ejemplo n.º 6
0
        public HtmlReportCommand(
            WorkingDirectoryOption workingDirectoryOption,
            CoverageLoadedFileOption coverageLoadedFileOption,
            HtmlOutputFolderOption htmlOutputFolderOption,
            ThresholdOption thresholdOption)
            : base(_name, _description)
        {
            _coverageLoadedFileOption = coverageLoadedFileOption;
            _thresholdOption          = thresholdOption;
            _htmlOutputFolderOption   = htmlOutputFolderOption;

            Options = new IOption[]
            {
                workingDirectoryOption,
                coverageLoadedFileOption,
                thresholdOption,
                htmlOutputFolderOption
            };
        }