예제 #1
0
        public void GetResponseByName()
        {
            string city = "Brest";

            var           content = singleService.GetCurrentWeatherByName(city);
            ContentReader cr      = new ContentReader(content);

            Assert.That(cr.GetId(), Is.EqualTo("629634"), "That is another city's id");
            Assert.That(cr.GetMainTemp(), Is.GreaterThan(0), "It's unexpected cold today as for Brest");
        }