Ejemplo n.º 1
0
        public void Test_FilterExtension_IsSelected_False()
        {
            var filter = new Filter("Test", new { controller = "test", action = "other" });
            var result = filter.IsSelected(this.Helper.HtmlHelper);

            Assert.IsFalse(result);
        }
Ejemplo n.º 2
0
        public void Test_Filter()
        {
            var filter = new Filter(
                "test",
                new { test = "other" },
                new { test = "other" }
            );

            Assert.AreEqual("test", filter.Title, "Title");
            Assert.IsNotNull(filter.Parameters, "Parameters");
            Assert.IsNotNull(filter.Conditions, "Conditions");
        }