Created
March 19, 2010 20:15
-
-
Save RookieOne/338124 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
[TestMethod] | |
public void should_set_parameter() | |
{ | |
var message = new Message() as dynamic; | |
message.Foo = "foo"; | |
var foo = message.Foo as string; | |
foo.ShouldBe("foo"); | |
} | |
[TestMethod] | |
public void should_contain_parameter() | |
{ | |
var message = new Message() as dynamic; | |
message.Foo = "foo"; | |
bool contains = false; | |
if (message.ContainsFoo) | |
{ | |
contains = true; | |
} | |
contains.ShouldBeTrue(); | |
} | |
[TestMethod] | |
public void should_does_not_contain_parameter() | |
{ | |
var message = new Message() as dynamic; | |
message.Foo = "foo"; | |
bool doesNotContain = false; | |
if (message.DoesNotContainFoo) | |
{ | |
doesNotContain = true; | |
} | |
doesNotContain.ShouldBeTrue(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment