Пример #1
0
        public void ConstructWithNameTest()
        {
            string name = "Captain";
            Title target = new Title(name);

            Assert.AreEqual<string>(name, target.Name, "NhsCui.Toolkit.PatientSearch.Title.Name was not set correctly.");
        }
Пример #2
0
        public void NameTest()
        {
            string name = "Captain";

            Title target = new Title(name);

            string val = "Deacon";
            target.Name = val;

            Assert.AreEqual<string>(val, target.Name, "NhsCui.Toolkit.Title.Name was not set correctly.");
        }
Пример #3
0
        public void GenderTest()
        {
            string name = "Fraulein";

            Title target = new Title(name);

            Gender val = Gender.Female;

            target.Gender = val;

            Assert.AreEqual<Gender>(val, target.Gender, "NhsCui.Toolkit.Title.Gender was not set correctly.");
        }
Пример #4
0
        public void ConstructWithNameAndGenderTest()
        {
            string name = "Fraulein";
            Gender gender = Gender.Female;
            Title target = new Title(name, gender);

            Assert.AreEqual<string>(name, target.Name, "NhsCui.Toolkit.PatientSearch.Title.Name was not set correctly.");
            Assert.AreEqual<Gender>(gender, target.Gender, "NhsCui.Toolkit.PatientSearch.Title.Gender was not set correctly.");
        }