Created
January 13, 2013 01:59
-
-
Save jharmn/4521805 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [Then(@"it should have the field ""(.*)"" containing the value ""(.*)""")] | |
| public void ThenItShouldContainTheFieldContainingTheValue(string field, string value) | |
| { | |
| if (response != null) | |
| { | |
| JValue val = (JValue)this.response.GetValue(field); | |
| string valStr = val.Value().Trim(); | |
| Assert.IsNotNull(valStr); | |
| Assert.AreEqual(valStr, value.Trim()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment