Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 /// <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));
 }