Пример #1
0
        public void App_path_modifier_returns_virtual_path()
        {
            var response = new FakeHttpResponse();

            var path = response.ApplyAppPathModifier("the/path");

            Assert.That(path, Is.EqualTo("the/path"));
        }
Пример #2
0
        public void App_path_modifier_returns_virtual_path()
        {
            var response = new FakeHttpResponse();

            var path = response.ApplyAppPathModifier("the/path");

            Assert.That(path, Is.EqualTo("the/path"));
        }
Пример #3
0
        public void App_path_modifier_can_alter_virtual_path()
        {
            var response = new FakeHttpResponse();
            response.SetAppPathModifier(x => x + "/12345");

            var path = response.ApplyAppPathModifier("the/path");

            Assert.That(path, Is.EqualTo("the/path/12345"));
        }
Пример #4
0
        public void App_path_modifier_can_alter_virtual_path()
        {
            var response = new FakeHttpResponse();

            response.SetAppPathModifier(x => x + "/12345");

            var path = response.ApplyAppPathModifier("the/path");

            Assert.That(path, Is.EqualTo("the/path/12345"));
        }