Esempio n. 1
0
        public async Task HistoryMapWebClientTest_AllBorders()
        {
            var client = new HistoryMapWebClient(user, pass);
            var btns   = await client.GetBorders();

            Assert.AreNotEqual(0, btns.Count);

            var withPoints = btns.Where(p => p.AllPointsofBorder.Count > 0);

            Assert.AreNotEqual(0, withPoints.Count());
        }
Esempio n. 2
0
        public async Task HistoryMapWebClientTest_AllBordersFilter()
        {
            const int expectedBtns  = 1;
            var       expectedColor = Color.Red.ToArgb();

            var currentTime = new LocalDate(Era.Common, 1066, 5, 5);
            var client      = new HistoryMapWebClient(user, pass);
            var borders     = await client.GetBorders(currentTime);

            Assert.AreEqual(expectedBtns, borders.Count);
            Assert.AreEqual(expectedColor, borders.First().Colour.ToArgb());
        }