예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }