In my 'act' I want to capture an exception so that I can do multiple tests on the exception data.  Examples on the web show how to capture and compare the type/message within a test (or 'It' block) but not how to capture the exception as an 'act' in itself.  

I am currently just doing a try/catch within the 'act' body and storing the exception within the context for later testing in the 'It' block.  There I can perform a number of different fluent assertions on the data.  Is this the best approach? 


Question: Text background colour cuts to shape and length of text
Answer: Sure, set the display property of the h3 element to inline. You may also need to adjust the line-height property to match the font size.

display:inline;
font-size:20px;
line-height:20px;


jsFiddle example