public void GetFieldIndexByID_InvalidID_NegativeOneReturned()
 {
     TestFormField dummy = new TestFormField("Item1", "(label)", "(tooltip)");
     FormViewModel form = new FormViewModel();
     form.AddField(dummy);
     Assert.AreEqual(-1, form.GetFieldIndexByID("Item2"));
 }
 public void GetFieldIndexByID_Null_ExceptionThrown()
 {
     object dummy;
     FormViewModel form = new FormViewModel();
     form.AddField(new TestFormField());
     dummy = form.GetFieldIndexByID(null);
 }