public void GetFieldValueByID_Null_ExceptionThrown() { object dummy; ScientificDataFormViewModel form = new ScientificDataFormViewModel(); form.AddField(new TestFormField()); dummy = form.GetFieldValueByID(null); }
public void GetFieldValueByID_InvalidID_ZeroReturned() { TestFormField dummy = new TestFormField("Item1", "(label)", "(tooltip)"); ScientificDataFormViewModel form = new ScientificDataFormViewModel(); form.AddField(dummy); Assert.AreEqual(0.0, form.GetFieldValueByID("Item2")); }