示例#1
0
    public static unsafe void AssertThreadTest()
    {
        Assert.That(() => AssertionUtilities.AssertThread(Thread.CurrentThread),
                    Throws.Nothing
                    );

        Assert.That(() => AssertionUtilities.AssertThread(null !),
                    Configuration.AssertionsEnabled ? Throws.Exception : Throws.Nothing
                    );
    }