Esempio n. 1
0
    public void TestAction()
    {
        var stub =
            new Stub <IList <int> >()
            .SetupAction(x => x.Clear()).Raises <System.ApplicationException>()
            .Create();

        Assert.Throws <ApplicationException>(() =>
                                             stub.Clear()
                                             );
    }