コード例 #1
0
 public void Finds_by_exact_text()
 {
     var fields = new FieldFinder(Driver, "Some for labeled radio option", Root, DefaultOptions).Find(Options.Exact);
     Assert.That(fields.Select(e => e.Id).OrderBy(id => id), Is.EquivalentTo(new[]
         {
             "forLabeledRadioFieldExactMatchId"
         }));
 }
コード例 #2
0
 public void Finds_by_substring()
 {
     var fields = new FieldFinder(Driver, "Some container labeled radio option", Root, DefaultOptions).Find(Options.Substring);
     Assert.That(fields.Select(e => e.Id).OrderBy(id => id), Is.EquivalentTo(new[]
         {
             "containerLabeledRadioFieldExactMatchId",
             "containerLabeledRadioFieldPartialMatchId"
         }));
 }