public void GetFieldContentByID_Null_ExceptionThrown()
 {
     object dummy;
     FormViewModel form = new FormViewModel();
     form.AddField(new TestFormField());
     dummy = form.GetFieldContentByID(null);
 }
 public void GetFieldContentByID_ValidID_ContentReturned()
 {
     string message = "Hello!";
     TestFormField dummy = new TestFormField("Item1", "(label)", "(tooltip)");
     dummy.Content = message;
     FormViewModel form = new FormViewModel();
     form.AddField(dummy);
     Assert.AreEqual(message, form.GetFieldContentByID("Item1") as String);
 }
 public void GetFieldContentByID_ValidID_ContentIsNotNull()
 {
     string message = "Hello!";
     TestFormField dummy = new TestFormField("Item1", "(label)", "(tooltip)");
     dummy.Content = message;
     FormViewModel form = new FormViewModel();
     form.AddField(dummy);
     Assert.IsNotNull(form.GetFieldContentByID("Item1"));
 }