Exemplo n.º 1
0
 public void AccessViaIndexers()
 {
     Assert.Equal("Patient.active[0].extension[1].value[0]", patient["active"][0]["extension"][1]["value"][0].Location);
     Assert.Equal("Patient.active[0].extension[1].value[0]", patient["active"]["extension"][1]["value"].Single().Location);
     Assert.Equal("Patient.active[0].extension[0].value[0]", patient.Children("active").First()
                  .Children("extension").First()
                  .Children("value").First().Location);
     Assert.Equal("Patient.active[0].extension[0].value[0]", patient.Children("active")
                  .Children("extension").First()
                  .Children("value").Single().Location);
 }