コード例 #1
0
        public void Nav_Plugin_CanHandle()
        {
            var stream = new RequestStream().ValidRequest("test.html", "POST", "localhost", "street=");
            var req    = new Request(stream);
            var nav    = new Naviplugin().CanHandle(req);

            Assert.AreEqual(1f, nav);
        }
コード例 #2
0
        public void Nav_Should_Throw_Exception()
        {
            var       stream = new RequestStream().ValidRequest("test.html", "POST", "localhost", "street=");
            var       req    = new Request(stream);
            Exception exc    = null;

            try
            {
                var nav = new Naviplugin().TestReader("foo");
            }
            catch (Exception e)
            {
                exc = e;
            }

            Assert.IsInstanceOfType(exc, typeof(Exception));
        }