Esempio n. 1
0
        public void getVistaGender()
        {
            Assert.AreEqual("", VistaUtils.getVistaGender(""));

            Assert.AreEqual("", VistaUtils.getVistaGender(null));

            Assert.AreEqual("", VistaUtils.getVistaGender("joe shmoe"));

            Assert.AreEqual("", VistaUtils.getVistaGender("shmoe,joe,bob"));

            Assert.AreEqual("", VistaUtils.getVistaGender("2shmoe,joe"));

            Assert.AreEqual("M", VistaUtils.getVistaGender("mshmoe,joe"));

            Assert.AreEqual("M", VistaUtils.getVistaGender("Mshmoe,joe"));

            Assert.AreEqual("F", VistaUtils.getVistaGender("fshmoe,jane"));

            Assert.AreEqual("F", VistaUtils.getVistaGender("Fshmoe,jane"));
        }