Created
August 4, 2012 15:11
-
-
Save theorigin/3258287 to your computer and use it in GitHub Desktop.
Json TDD get at rows
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
var rows = (List<object><p> | |
)data.GetType().GetProperty("rows").GetValue(data, null); | |
rows.Count.Should().Be(1); | |
this.GetValue(rows[0], "id").Should().Be("98732312"); | |
var cell = rows[0].GetType().GetProperty("cell").GetValue(rows[0], null); | |
this.GetValue(cell, "prop1").Should().Be("a"); | |
this.GetValue(cell, "prop2").Should().Be("b"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment