Exemplo n.º 1
0
        public void ShouldReturnSpecificQuagganFromList()
        {
            Dictionary <string, Lazy <Quaggan> > quaggans = GW2Api.V2().Quaggans.GetAll();
            Quaggan cryQuaggan = quaggans["cry"].Value;

            Assert.AreEqual("https://static.staticwars.com/quaggans/cry.jpg", cryQuaggan.Url);
        }
Exemplo n.º 2
0
        public void ShouldReturnSingleQuaggan()
        {
            Quaggan cakeQuaggan = GW2Api.V2().Quaggans.Get("cake");

            Assert.AreEqual("https://static.staticwars.com/quaggans/cake.jpg", cakeQuaggan.Url);
        }
Exemplo n.º 3
0
 internal static void Id_is_not_empty(this Quaggan actual) => Assert.NotEmpty(actual.Id);
Exemplo n.º 4
0
 internal static void Quaggan_has_picture(this Quaggan actual) =>
 Assert.True(Uri.IsWellFormedUriString(actual.PictureHref, UriKind.Absolute));