Esempio n. 1
0
        public void CheckBaseImplementation()
        {
            MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName");

            AssertHelper.ExpectedException <ArgumentException>(() => proxy.Query("   "));
            AssertHelper.ExpectedException <ArgumentException>(() => proxy.Query(string.Empty));
            AssertHelper.ExpectedException <NotSupportedException>(() => proxy.Query("BigEgg"));

            AssertHelper.ExpectedException <NotSupportedException>(() =>
                                                                   proxy.Query(new List <string>()));
            AssertHelper.ExpectedException <NotSupportedException>(() =>
                                                                   proxy.Query(new List <string>()
            {
                "BigEggg"
            }));

            AssertHelper.ExpectedException <NotImplementedException>(() =>
                                                                     proxy.CallQueryCore(new List <string>()
            {
                "BigEggg"
            }, true));
            AssertHelper.ExpectedException <NotImplementedException>(() =>
                                                                     proxy.CallQueryCore(new List <string>()
            {
                "BigEggg"
            }, false));
        }
Esempio n. 2
0
        public void CheckBaseImplementation()
        {
            MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName");

            AssertHelper.ExpectedException<ArgumentException>(() => proxy.Query("   "));
            AssertHelper.ExpectedException<ArgumentException>(() => proxy.Query(string.Empty));
            AssertHelper.ExpectedException<NotSupportedException>(() => proxy.Query("BigEgg"));

            AssertHelper.ExpectedException<NotSupportedException>(() =>
                proxy.Query(new List<string>()));
            AssertHelper.ExpectedException<NotSupportedException>(() =>
                proxy.Query(new List<string>() { "BigEggg" }));

            AssertHelper.ExpectedException<NotImplementedException>(() =>
                proxy.CallQueryCore(new List<string>() { "BigEggg" }, true));
            AssertHelper.ExpectedException<NotImplementedException>(() =>
                proxy.CallQueryCore(new List<string>() { "BigEggg" }, false));
        }
Esempio n. 3
0
        public void QueryTest()
        {
            MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName");

            proxy.CanQueryValue = true;

            ReadOnlyCollection <Bug> bugs = proxy.Query(new List <string>());

            Assert.AreEqual(0, bugs.Count);
        }
Esempio n. 4
0
        public void QueryTest()
        {
            MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName");

            proxy.CanQueryValue = true;

            ReadOnlyCollection<Bug> bugs = proxy.Query(new List<string>());
            Assert.AreEqual(0, bugs.Count);
        }