Пример #1
0
        public void AssertPeople(TVTPerson pers1, TVTPerson pers2, TestMode testMode, bool isFake = false)
        {
            AssertEntity(pers1, pers2, testMode);

            if (isFake)
            {
                Assert.AreEqual(pers1.FakeFirstName, pers2.FakeFirstName);
                Assert.AreEqual(pers1.FakeLastName, pers2.FakeLastName);
                Assert.AreEqual(pers1.FakeNickName, pers2.FakeNickName);
            }
            else
            {
                Assert.AreEqual(pers1.FirstName, pers2.FirstName);
                Assert.AreEqual(pers1.LastName, pers2.LastName);
                Assert.AreEqual(pers1.NickName, pers2.NickName);
            }
            Assert.AreEqual(pers1.TmdbId, pers2.TmdbId);
            Assert.AreEqual(pers1.ImdbId, pers2.ImdbId);
            Assert.AreEqual(pers1.ImageUrl, pers2.ImageUrl);
            AssertExt.AreCollectionEqual(pers1.Functions, pers2.Functions);
            Assert.AreEqual(pers1.Gender, pers2.Gender);
            Assert.AreEqual(pers1.Birthday, pers2.Birthday);
            Assert.AreEqual(pers1.Deathday, pers2.Deathday);
            Assert.AreEqual(pers1.Country, pers2.Country);
            Assert.AreEqual(pers1.Prominence, pers2.Prominence);
            Assert.AreEqual(pers1.Skill, pers2.Skill);
            Assert.AreEqual(pers1.Fame, pers2.Fame);
            Assert.AreEqual(pers1.Scandalizing, pers2.Scandalizing);
            Assert.AreEqual(pers1.PriceMod, pers2.PriceMod);
            Assert.AreEqual(pers1.Power, pers2.Power);
            Assert.AreEqual(pers1.Humor, pers2.Humor);
            Assert.AreEqual(pers1.Charisma, pers2.Charisma);
            Assert.AreEqual(pers1.Appearance, pers2.Appearance);
            Assert.AreEqual(pers1.TopGenre1, pers2.TopGenre1);
            Assert.AreEqual(pers1.TopGenre2, pers2.TopGenre2);
            if (testMode != TestMode.XMLV3)
            {
                Assert.AreEqual(pers1.ProgrammeCount, pers2.ProgrammeCount);
            }
        }
Пример #2
0
        public void AssertProgrammes(TVTProgramme prog1, TVTProgramme prog2, TestMode testMode)
        {
            AssertEntity(prog1, prog2, testMode);

            Assert.AreEqual(prog1.TitleDE, prog2.TitleDE);
            Assert.AreEqual(prog1.TitleEN, prog2.TitleEN);
            Assert.AreEqual(prog1.DescriptionDE, prog2.DescriptionDE);
            Assert.AreEqual(prog1.DescriptionEN, prog2.DescriptionEN);

            Assert.AreEqual(prog1.ProductType, prog2.ProductType);
            Assert.AreEqual(prog1.ProgrammeType, prog2.ProgrammeType);
            Assert.AreEqual(prog1.FakeTitleDE, prog2.FakeTitleDE);
            Assert.AreEqual(prog1.FakeTitleEN, prog2.FakeTitleEN);
            Assert.AreEqual(prog1.FakeDescriptionDE, prog2.FakeDescriptionDE);
            Assert.AreEqual(prog1.FakeDescriptionEN, prog2.FakeDescriptionEN);

            Assert.AreEqual(prog1.DescriptionMovieDB, prog2.DescriptionMovieDB);
            Assert.AreEqual(prog1.Staff, prog2.Staff);
            Assert.AreEqual(prog1.BettyBonus, prog2.BettyBonus);
            Assert.AreEqual(prog1.PriceMod, prog2.PriceMod);
            Assert.AreEqual(prog1.CriticsRate, prog2.CriticsRate);
            Assert.AreEqual(prog1.ViewersRate, prog2.ViewersRate);
            Assert.AreEqual(prog1.BoxOfficeRate, prog2.BoxOfficeRate);
            Assert.AreEqual(prog1.Country, prog2.Country);
            Assert.AreEqual(prog1.Year, prog2.Year);
            Assert.AreEqual(prog1.DistributionChannel, prog2.DistributionChannel);
            Assert.AreEqual(prog1.MainGenre, prog2.MainGenre);
            Assert.AreEqual(prog1.SubGenre, prog2.SubGenre);
            Assert.AreEqual(prog1.Blocks, prog2.Blocks);
            Assert.AreEqual(prog1.LiveHour, prog2.LiveHour);
            Assert.AreEqual(prog1.Flags, prog2.Flags);
            Assert.AreEqual(prog1.TargetGroups, prog2.TargetGroups);
            AssertExt.AreCollectionEqual(prog1.ProPressureGroups, prog2.ProPressureGroups);
            AssertExt.AreCollectionEqual(prog1.ContraPressureGroups, prog2.ContraPressureGroups);
            Assert.AreEqual(prog1.ImdbId, prog2.ImdbId);
            Assert.AreEqual(prog1.TmdbId, prog2.TmdbId);
            Assert.AreEqual(prog1.RottenTomatoesId, prog2.RottenTomatoesId);
            Assert.AreEqual(prog1.ImageUrl, prog2.ImageUrl);
        }