Ejemplo n.º 1
0
 private void AssertFourSeparators(RepeaterTester tester, string separatorLabelId)
 {
     Assert.AreEqual(" | ", new LabelTester(separatorLabelId, tester.Separator(0)).Text);
     Assert.AreEqual(" | ", new LabelTester(separatorLabelId, tester.Separator(1)).Text);
     Assert.AreEqual(" | ", new LabelTester(separatorLabelId, tester.Separator(2)).Text);
     Assert.AreEqual(" | ", new LabelTester(separatorLabelId, tester.Separator(3)).Text);
 }
Ejemplo n.º 2
0
        public void TestDescriptions()
        {
            RepeaterTester all = new RepeaterTester("allRepeater", true, true, true);

            AssertDescription("RepeaterTester 'allRepeater'", all);
            AssertDescription("HeaderTemplate in RepeaterTester 'allRepeater'", all.Header);
            AssertDescription("Item #3 in RepeaterTester 'allRepeater'", all.Item(2));
            AssertDescription("Separator #2 in RepeaterTester 'allRepeater'", all.Separator(1));
            AssertDescription("FooterTemplate in RepeaterTester 'allRepeater'", all.Footer);
        }