Skip to content

Instantly share code, notes, and snippets.

@theorigin
Created August 4, 2012 15:11
Show Gist options
  • Save theorigin/3258287 to your computer and use it in GitHub Desktop.
Save theorigin/3258287 to your computer and use it in GitHub Desktop.
Json TDD get at rows
var rows = (List<object><p>
)data.GetType().GetProperty("rows").GetValue(data, null);&nbsp;
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