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_throw_if_context_is_null()
    {
        var fixture = new AsciiDoctorJAliasesFixture();

        fixture.GivenContextIsNull();

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

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