Esempio n. 1
0
        public void Should_not_throw_if_settings_are_set()
        {
            var fixture = new AsciiDoctorJAliasesFixture();

            var actual = fixture.Run();

            actual.Args.Should().Be("");
        }
Esempio n. 2
0
        public void Should_throw_if_context_is_null_called_fluently()
        {
            var fixture = new AsciiDoctorJAliasesFixture();

            fixture.GivenContextIsNull();

            Action action = () => fixture.RunFluent(x => { });

            action.Should().Throw <ArgumentNullException>().WithMessage("*context*");
        }
Esempio n. 3
0
        public void Should_not_throw_if_settings_are_null_but_called_fluently()
        {
            var fixture = new AsciiDoctorJAliasesFixture();

            fixture.GivenSettingsIsNull();

            var actual = fixture.RunFluent(x => { });

            actual.Args.Should().Be("");
        }
Esempio n. 4
0
        public void Should_throw_if_settings_are_null()
        {
            var fixture = new AsciiDoctorJAliasesFixture();

            fixture.GivenSettingsIsNull();

            Action action = () => fixture.Run();

            action.Should().Throw <ArgumentNullException>().WithMessage("*settings*");
        }
Esempio n. 5
0
    public void Should_throw_if_context_is_null()
    {
        var fixture = new AsciiDoctorJAliasesFixture();

        fixture.GivenContextIsNull();

        Action action = () => fixture.Run();

        action.ShouldThrow <ArgumentNullException>().ParamName.ShouldBe("context");
    }
Esempio n. 6
0
    public void Should_throw_if_settings_are_null()
    {
        var fixture = new AsciiDoctorJAliasesFixture();

        fixture.GivenSettingsIsNull();

        Action action = () => fixture.Run();

        action.ShouldThrow <ArgumentNullException>().ParamName.ShouldBe("settings");
    }