public void IsProfileSubViewCorrect(string content, string testview, bool expected) { GadgetMaster master = new GadgetMaster(testFactory); ContentBlock target = new ContentBlock(content, master); Assert.AreEqual(expected, target.IsSubView(testview)); }
/// <summary> /// Tests to see if this is a sub-view, but not a top-level view /// </summary> /// <param name="content"></param> /// <param name="surfaceName"></param> /// <returns></returns> internal bool IsSubView(ContentBlock content, string view) { return(content.IsSubView(view)); }