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 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.");
        }