public void Plugin_Can_Handle()
        {
            var           stream = new RequestStream().ValidRequest("test.html", "POST", "localhost", "message=");
            var           req    = new Request(stream);
            ToLowerPlugin lower  = new ToLowerPlugin();
            float         i      = lower.CanHandle(req);

            Assert.AreEqual(1f, i);
        }
Beispiel #2
0
        public void CanHandle_ValidURLNoContent_Returns0()
        {
            Request simpleRequest = new Request(MyRequestHelper.GetValidRequestStream("/toLower", method: "POST", body: " "));
            float   result        = _ToLowerPlugin.CanHandle(simpleRequest);

            Assert.AreEqual(result, 0.0f);
        }