Exemplo n.º 1
0
        public void Fred_Test()
        {
            Fred fred = null;

            Action act = () => fred = Fred.Instance;

            act.Should().Throw <TargetInvocationException>().WithInnerException <InvalidOperationException>();

            fred.Should().BeNull();
        }