public void GetMarketStat_ValidRequest_ValidResponse() { MarketStatResponse res = _api.GetMarketStat(_validOptions); EveCentralMarketStatItem entry = res.Result.First(); Assert.AreEqual(TypeId, entry.TypeId); Assert.AreNotEqual(0, entry.All.Average); Assert.AreNotEqual(0, entry.All.Volume); Assert.AreNotEqual(0, entry.All.Max); Assert.AreNotEqual(0, entry.All.Min); Assert.AreNotEqual(0, entry.All.StdDev); Assert.AreNotEqual(0, entry.All.Median); Assert.AreNotEqual(0, entry.All.Percentile); }
public void GetMarketStat_ValidRequest_ValidResponse() { var options = new EveCentralOptions() { System = 30000142 }; options.Items.Add(34); MarketStatResponse res = _api.GetMarketStat(options); EveCentralMarketStatItem entry = res.Result.First(); Assert.AreEqual(TypeId, entry.TypeId); Assert.AreNotEqual(0, entry.All.Average); Assert.AreNotEqual(0, entry.All.Volume); Assert.AreNotEqual(0, entry.All.Max); Assert.AreNotEqual(0, entry.All.Min); Assert.AreNotEqual(0, entry.All.StdDev); Assert.AreNotEqual(0, entry.All.Median); Assert.AreNotEqual(0, entry.All.Percentile); }