public void GeneralFakeProxyTest() { FakeProxy proxy = new FakeProxy(); Assert.IsTrue(proxy.CanQuery); Assert.AreEqual("Fake", proxy.ProxyName); Assert.AreEqual(0, proxy.StateValues.Count); proxy.Initialize(); Assert.AreEqual(4, proxy.StateValues.Count); }
public void QueryTest() { FakeProxy proxy = new FakeProxy(); proxy.Initialize(); var bugs = proxy.Query("bigegg"); Assert.IsNotNull(bugs); Assert.AreEqual(7, bugs.Count); bugs = proxy.Query(new List<string> { "bigegg", "pupil" }); Assert.IsNotNull(bugs); Assert.AreEqual(12, bugs.Count); }
public void QueryTest() { FakeProxy proxy = new FakeProxy(); proxy.Initialize(); var bugs = proxy.Query("bigegg"); Assert.IsNotNull(bugs); Assert.AreEqual(7, bugs.Count); bugs = proxy.Query(new List <string> { "bigegg", "pupil" }); Assert.IsNotNull(bugs); Assert.AreEqual(12, bugs.Count); }