Esempio n. 1
0
        public void CanFetchItems()
        {
            var fetch = new FetchItems();
            var data  = fetch.Execute();

            Assert.IsNotNull(data);
            Assert.IsTrue(data.Count > 0);
        }
Esempio n. 2
0
        public void CanReadBaseItemJsonTest()
        {
            var json         = File.ReadAllText("C:\\Users\\danie\\Documents\\GitHub\\PoeSimCraft\\PoeCrafting\\Data\\base_items.json");
            var deserialized = JsonConvert.DeserializeObject <Dictionary <string, BaseItemJson> >(json);

            Assert.IsNotNull(deserialized);

            FetchItems fetchBaseItems = new FetchItems();
            var        items          = fetchBaseItems.Execute();

            Assert.IsNotNull(items);
        }