public void GetInventoryTest() { // TODO: add unit test for the method 'GetInventory' var response = instance.GetInventory(); Assert.IsInstanceOf <Dictionary <string, int?> > (response, "response is Dictionary<string, int?>"); }
public void TestGetInventory() { // set timeout to 10 seconds Configuration c1 = new Configuration(timeout: 10000); StoreApi storeApi = new StoreApi(c1); Dictionary <String, int?> response = storeApi.GetInventory(); foreach (KeyValuePair <string, int?> entry in response) { Assert.IsInstanceOf(typeof(int?), entry.Value); } }
public void GetInventoryTest() { // TODO: add unit test for the method 'GetInventory' //var response = instance.GetInventory(); //Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>"); // set timeout to 10 seconds Configuration c1 = new Configuration(timeout: 10000); StoreApi storeApi = new StoreApi(c1); Dictionary <String, int?> response = storeApi.GetInventory(); foreach (KeyValuePair <string, int?> entry in response) { Assert.IsInstanceOf(typeof(int?), entry.Value); } }