示例#1
0
    public static void AssertTest()
    {
        Assert.That(() => AssertionUtilities.Assert(false),
                    Configuration.AssertionsEnabled ? Throws.Exception : Throws.Nothing
                    );

        Assert.That(() => AssertionUtilities.Assert(true),
                    Throws.Nothing
                    );
    }