Exemplo n.º 1
0
        private void DefaultProperties(TestTableSectionStyle tss)
        {
            Assert.AreEqual(0, tss.StateBag.Count, "ViewState.Count");

            Assert.IsTrue(tss.Visible, "Visible");

            Assert.AreEqual(0, tss.StateBag.Count, "ViewState.Count-2");
            tss.Reset();
            Assert.AreEqual(0, tss.StateBag.Count, "Reset");
        }
Exemplo n.º 2
0
		private void DefaultProperties (TestTableSectionStyle tss)
		{
			Assert.AreEqual (0, tss.StateBag.Count, "ViewState.Count");

			Assert.IsTrue (tss.Visible, "Visible");

			Assert.AreEqual (0, tss.StateBag.Count, "ViewState.Count-2");
			tss.Reset ();
			Assert.AreEqual (0, tss.StateBag.Count, "Reset");
		}
Exemplo n.º 3
0
        private void NullProperties(TestTableSectionStyle tss)
        {
            Assert.IsTrue(tss.Empty, "Empty");

            tss.Visible = false;
            Assert.IsFalse(tss.Visible, "Visible");

            Assert.IsTrue(tss.Empty, "!Empty");              // strange !!!

            Assert.AreEqual(1, tss.StateBag.Count, "ViewState.Count-1");
            tss.Reset();

            // strange results because TableSectionStyle doesn't override
            // Reset
            Assert.AreEqual(1, tss.StateBag.Count, "Reset");
            Assert.IsTrue(tss.Empty, "Empty/Reset");
        }
Exemplo n.º 4
0
		private void NullProperties (TestTableSectionStyle tss)
		{
			Assert.IsTrue (tss.Empty, "Empty");

			tss.Visible = false;
			Assert.IsFalse (tss.Visible, "Visible");

			Assert.IsTrue (tss.Empty, "!Empty"); // strange !!!

			Assert.AreEqual (1, tss.StateBag.Count, "ViewState.Count-1");
			tss.Reset ();
			
			// strange results because TableSectionStyle doesn't override
			// Reset
			Assert.AreEqual (1, tss.StateBag.Count, "Reset");
			Assert.IsTrue (tss.Empty, "Empty/Reset");
		}