Esempio n. 1
0
        public void GetGameStoreDataTest()
        {
            var client        = new GogApiClient();
            var existingStore = client.GetGameStoreData(@"https://www.gog.com/game/vampire_the_masquerade_bloodlines");

            Assert.IsNotNull(existingStore);

            var noneexistingStore = client.GetGameDetails("https://www.gog.com/game/vampire");

            Assert.IsNull(noneexistingStore);
        }
Esempio n. 2
0
        public void GetGameDetailsTest()
        {
            var client          = new GogApiClient();
            var existingDetails = client.GetGameDetails("2");

            Assert.IsNotNull(existingDetails);

            var nonexistingDetails = client.GetGameDetails("99999999");

            Assert.IsNull(nonexistingDetails);
        }