public void IsQualifiedViewCorrect(string content, string testview, bool expected) { GadgetMaster master = new GadgetMaster(testFactory); ContentBlock target = new ContentBlock(content, master); Assert.AreEqual(expected, target.IsQualifiedView(testview)); }
/// <summary> /// Tests to see if a given content block qualifies as being part of a view. /// Content blocks may participate in multiple views or may be subviews /// </summary> /// <param name="surfaceName"></param> /// <param name="content"></param> /// <returns></returns> private bool IsQualifiedView(string view, ContentBlock content) { return(content.IsQualifiedView(view)); }