예제 #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");
        }
예제 #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");
		}
예제 #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");
        }
예제 #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");
		}