public void MockRunsReplacedBehaviorReturningData() { // Set up. var mock = new MockStub(); const string Question = "Well do ya?"; // Add custom behavior to see if it executes. mock.SetBehavior(m => m.GetMessage(), () => Question); Assert.AreEqual( Question, mock.GetMessage(), "Expected custom behavior to run."); }