public void PropertyHasBeenSetFalseTest() { Parser target = new Parser(); NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor accessor = new NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor(target); Information patientSearchInfo = Information.DateOfBirth; target.Text = "Mr Smith 30"; target.Parse(); bool actual; actual = accessor.PropertyHasBeenSet(patientSearchInfo); Assert.AreEqual <bool>(false, actual, "NhsCui.Toolkit.Parser.PropertyHasBeenSet did not return the expected value."); }
public void PropertyHasBeenSetTrueTest() { Parser target = new Parser(); NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor accessor = new NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor(target); Information patientSearchInfo = Information.Gender; target.Text = "Female"; target.Parse(); bool actual; actual = accessor.PropertyHasBeenSet(patientSearchInfo); Assert.AreEqual <bool>(true, actual, "NhsCui.Toolkit.Parser.PropertyHasBeenSet did not return the expected value."); }
public void PropertyHasBeenSetFalseTest() { Parser target = new Parser(); NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor accessor = new NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor(target); Information patientSearchInfo = Information.DateOfBirth; target.Text = "Mr Smith 30"; target.Parse(); bool actual; actual = accessor.PropertyHasBeenSet(patientSearchInfo); Assert.AreEqual<bool>(false, actual, "NhsCui.Toolkit.Parser.PropertyHasBeenSet did not return the expected value."); }
public void PropertyHasBeenSetTrueTest() { Parser target = new Parser(); NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor accessor = new NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor(target); Information patientSearchInfo = Information.Gender; target.Text = "Female"; target.Parse(); bool actual; actual = accessor.PropertyHasBeenSet(patientSearchInfo); Assert.AreEqual<bool>(true, actual, "NhsCui.Toolkit.Parser.PropertyHasBeenSet did not return the expected value."); }