Beispiel #1
0
        public async Task WhenRequestingLocalJudge_ItShouldReturnNull()
        {
            // arrange
            var crawler = new NitMappingCrawler();

            // act
            var res = await crawler.GetProblemLabel(293);

            // assert
            res.Should().BeNull();
        }
Beispiel #2
0
        public async Task WhenRequestingVirtualJudge_ItShouldReturnOjAndLabel()
        {
            // arrange
            var crawler = new NitMappingCrawler();

            // act
            var res = await crawler.GetProblemLabel(4229);

            // assert
            res.Should().Be("HDU-4355");
        }