public void CommerceService_DoesItemExist_True() { CommerceService cs = new CommerceService(); var sw = new Stopwatch(); sw.Start(); Assert.IsTrue(cs.DoesItemExist(VALID_ITEM_NAME, Data.Enums.ItemRarity.Basic, 0)); sw.Stop(); Console.WriteLine("To search for a valid name, it took {0}ms", sw.ElapsedMilliseconds); }
public void CommerceService_DoesItemExist_False() { // For this test, we'll also time how long it takes to check CommerceService cs = new CommerceService(); var sw = new Stopwatch(); sw.Start(); Assert.IsFalse(cs.DoesItemExist(INVALID_ITEM_NAME, Data.Enums.ItemRarity.Basic, 0)); sw.Stop(); Console.WriteLine("To search for an invalid name, it took {0}ms", sw.ElapsedMilliseconds); }