Exemplo n.º 1
0
        public void Execute()
        {
            // act
            var response = new MapNamesRequest().Execute();

            // assert
            Assert.IsTrue(response.Count > 0);

            foreach (var map in response)
            {
                Assert.AreNotEqual(0, map.Id);
                Assert.IsNotNull(map.Name);
            }
        }
Exemplo n.º 2
0
        public void ExecuteTranslated()
        {
            // arrange
            var translatedNames = new Dictionary <LanguageCode, string>()
            {
                { LanguageCode.DE, "Fluchküste" },
                { LanguageCode.EN, "Cursed Shore" },
                { LanguageCode.ES, "Ribera Maldita" },
                { LanguageCode.FR, "Rivage maudit" },
            };

            foreach (var pair in translatedNames)
            {
                // act
                var response = new MapNamesRequest(pair.Key).Execute();

                // assert
                var map = response.Where(m => m.Id == CursedShoreMapId).First();
                Assert.AreEqual(pair.Value, map.Name);
            }
        }