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); }
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"); }