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

            Assert.IsNotNull(data);
            Assert.IsTrue(data.Count > 0);
        }
Ejemplo 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);
        }