Esempio n. 1
0
        public void AllMandatoryInformationEnteredFalseTest()
        {
            Parser target = new Parser();

            target.MandatoryInformation = new List <Information>(new Information[] { Information.Gender, Information.NhsNumber, Information.Postcode, Information.Title });
            target.Text = "Female 437 262 3623 RG6 1WG";
            target.Parse();

            NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor accessor = new NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor(target);

            bool expected = false;
            bool actual;

            actual = accessor.AllMandatoryInformationEntered();

            Assert.AreEqual <bool>(expected, actual, "NhsCui.Toolkit.Parser.AllMandatoryInformationEntered did not return the expected value.");
        }
Esempio n. 2
0
        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.");
        }
Esempio n. 3
0
        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.");
        }
Esempio n. 4
0
        public void AllMandatoryInformationEnteredFalseTest()
        {
            Parser target = new Parser();

            target.MandatoryInformation = new List<Information>(new Information[] { Information.Gender, Information.NhsNumber, Information.Postcode, Information.Title });
            target.Text = "Female 437 262 3623 RG6 1WG";
            target.Parse();

            NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor accessor = new NhsCui.Toolkit.Test.NhsCui_Toolkit_PatientSearchParserAccessor(target);

            bool expected = false;
            bool actual;

            actual = accessor.AllMandatoryInformationEntered();

            Assert.AreEqual<bool>(expected, actual, "NhsCui.Toolkit.Parser.AllMandatoryInformationEntered did not return the expected value.");
        }
Esempio n. 5
0
        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.");
        }
Esempio n. 6
0
        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.");
        }