public void tollerate_inner_nodes_with_text_and_skip_them()
        {
            var pageBuilder = new MaraphoneSoccerPageBuilder().WithChamp("<a>href text</a> Champ description place <span>span text</span>");

            var champ = pageBuilder.Build();

            Assert.NotNull(champ);
            Assert.AreEqual("Champ description place", champ.Title);
        }
        public void identify_today_lines_with_event()
        {
            var pageBuilder = new MaraphoneSoccerPageBuilder()
                                    .ExpectedEvents("1", "2", "3", "4")
                                    .WithTodayLine("c1", "c2", 1, 2, 3, 4);

            var champ = pageBuilder.Build();

            var line = champ.Lines.First();

            var expectedLine = new EventLine("c1-c2", DateTimeOffset.Parse("15:00"),
                new[]
                {
                    new MaraphoneEvent("1", 1),
                    new MaraphoneEvent("2", 2),
                    new MaraphoneEvent("3", 3),
                    new MaraphoneEvent("4", 4),
                });

            Assert.IsTrue(line.IsSame(expectedLine), "actual line is differed from expected" );
        }
        public void find_and_parse_champ_title()
        {
            var pageBuilder = new MaraphoneSoccerPageBuilder().WithChamp("Champ description place");

            var champ = pageBuilder.Build();

            Assert.NotNull(champ);
            Assert.AreEqual("Champ description place", champ.Title);

            var line = champ.Lines.FirstOrDefault();

            Assert.NotNull(line);
            Assert.AreEqual("Command 1-Command 2", line.Desciption.What);
            Assert.AreEqual(DateTimeOffset.Parse("15:00"), line.Desciption.When);

            var @event = line.Events.FirstOrDefault();

            Assert.AreEqual(1111.1111, @event.Coefficient);
            Assert.AreEqual(string.Empty, @event.Specification);
            Assert.AreEqual("default event type", @event.Type);
        }