コード例 #1
0
        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));
        }
コード例 #2
0
 /// <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));
 }