Created
July 21, 2010 13:34
-
-
Save johnnonolan/484488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace When | |
{ | |
[Subject(typeof())] | |
public class Figuring_out_mSpec | |
{ | |
It should_be_unspeced_here; | |
It should_fail_here_too = () => | |
returnFalse().ShouldBeFalse(); // ShouldBeFalse is an extension method in mspec. | |
It should_pass_here = () => | |
s.Contains("o").ShouldBeTrue(); // ShouldBeTrue is an extension method in mspec. | |
static string s = "John"; | |
static void noop() {} | |
static bool returnFalse(){return false;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The delegate It is just a void returning function (or procedure as they used to say in my day).