Esempio n. 1
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. 2
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("");
        }