Typo:
"Action act = () => subject.Foo2("Hello");
Act.ShouldThrow<InvalidOperationException>()
.WithInnerException<ArgumentException>()
.WithInnerMessage("whatever");"
The variable is called "act", not "Act". Cheers! :)
↧