public void TestDefaultCtor() { QueryCompositionAttribute attr = new QueryCompositionAttribute(); Assert.IsTrue(attr.Enabled); Assert.IsNull(attr.QueryComposerType); }
public void TestCtor() { QueryCompositionAttribute attr = new QueryCompositionAttribute(typeof(UrlQueryComposer)); Assert.IsTrue(attr.Enabled); Assert.IsNotNull(attr.QueryComposerType); Assert.AreEqual(attr.QueryComposerType, typeof(UrlQueryComposer)); }