i just looked (didn't check the production code) @
http://code.google.com/p/mocking-frameworks-compare/source/browse/trunk/Tests/RhinoMocksTests/BrainTests.cs
it could b written in fluentspec (with some adjustments to the
production code or test)
public class BrainTests : BehaviorOf<Brain> {
[Test]
public void TouchHotIron_Yell() {
var HotIron = new Iron { IsHot = true };
Given.Hand.TouchIron(HotIron).WillThrow(new BurnException());
When.TouchIron(HotIron);
Should.Mouth.Yell();
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---