src/MvcContrib.TestHelper/MvcContrib.TestHelper/FluentController/ActionExpectations.cs
/// <summary>
/// Shoulds the specified assertion.
/// This version also takes a reference to the mock controller for additional verifications
/// <example>
/// <code>
///    [TestClass]
///    public class UserControllerRedirectsTest
///    {
///        [TestMethod]
///        public void CreateReturnsOK()
///        {
///            GivenController.As&lt;UserController>()
///                .Should((controller, actionResult) => actionResult.AssertResultIs&lt;HeadResult>().StatusCode.ShouldBe(HttpStatusCode.OK))
///                .WhenCalling(x => x.Create());
///        }
/// </code>
/// </example>
/// </summary>
/// <param name="assertion"></param>
/// <returns></returns>
Shoulds the specified assertion.
This version also takes a reference to the mock controller for additional verifications


Shoulds the specified assertion . This version also takes a reference to the mock controller for additional verifications
public ActionExpectations<T> ShouldController(Action<IController, ActionResult> assertion)
		{
			if(assertion != null)
			{
				Expectations.Add(actionResult => assertion(MockController, actionResult));
			}
			return this;
		}
public ActionExpectations < T > ShouldController ( Action < IController , ActionResult > assertion ) { if ( assertion != null ) { Expectations . Add ( actionResult => assertion ( MockController , actionResult ) ) ; } return this ; }
Shoulds the specified assertion.
Shoulds the specified assertion .
None
assertion
Action<IController, ActionResult>
None