Exemplo n.º 1
0
        public void GetPerson_PersonWithRawNameDoesNotExist_NothingFound()
        {
            var settingsFake = new SirenOfShameSettingsFake();
            var actual       = NewNewsItemEventArgs.GetPerson(settingsFake, "domain\richardsonl");

            Assert.IsNull(actual);
        }
Exemplo n.º 2
0
        public void GetPerson_NameContainsCommaButIsSearchedForWithoutComma_NameStillFound()
        {
            var settingsFake = new SirenOfShameSettingsFake();

            settingsFake.People.Add(new PersonSetting {
                RawName = "O'Boyle, Robert"
            });
            var actual = NewNewsItemEventArgs.GetPerson(settingsFake, "O'Boyle  Robert");

            Assert.IsNotNull(actual);
        }
Exemplo n.º 3
0
        public void GetPerson_PersonWithRawNameExists_PersonIsFound()
        {
            var settingsFake = new SirenOfShameSettingsFake();

            settingsFake.People.Add(new PersonSetting {
                RawName = "domain\richardsonl"
            });
            var actual = NewNewsItemEventArgs.GetPerson(settingsFake, "domain\richardsonl");

            Assert.IsNotNull(actual);
        }