Esempio n. 1
0
        public void ControlsCollection()
        {
            LiteralPoker p = new LiteralPoker();

            Assert.AreEqual(p.ControlCollection().GetType(),
                            typeof(EmptyControlCollection), "A1");
        }
Esempio n. 2
0
        public void AddParsedSubObject2()
        {
            LiteralPoker p = new LiteralPoker(true);

            p.Text = "hey";
            p.ParsedSubObject(p);
        }
Esempio n. 3
0
        public void AddParsedSubObject3()
        {
            LiteralPoker p = new LiteralPoker(true);

            p.ParsedSubObject(new LiteralControl("Hey!"));
            Assert.AreEqual(0, p.Controls.Count, "#01");
            Assert.AreEqual("Hey!", p.Text, "#02");
        }
Esempio n. 4
0
        public void ViewState()
        {
            LiteralPoker p = new LiteralPoker();

            p.Text = "foo";

            LiteralPoker copy = new LiteralPoker();

            copy.LoadState(p.SaveState());
            Assert.AreEqual(copy.Text, "foo", "A1");
        }
Esempio n. 5
0
        public void TextProperty()
        {
            LiteralPoker p = new LiteralPoker();

            Assert.AreEqual(p.Text, String.Empty, "A1");

            p.Text = "foo";
            Assert.AreEqual(p.Text, "foo", "A2");

            p.Text = null;
            Assert.AreEqual(p.Text, String.Empty, "A3");
        }
Esempio n. 6
0
		public void TextProperty ()
		{
			LiteralPoker p = new LiteralPoker ();

			Assert.AreEqual (p.Text, String.Empty, "A1");

			p.Text = "foo";
			Assert.AreEqual (p.Text, "foo", "A2");

			p.Text = null;
			Assert.AreEqual (p.Text, String.Empty, "A3");
		}
Esempio n. 7
0
        public void AddParsedSubObject1()
        {
            LiteralPoker p = new LiteralPoker(true);

            p.ParsedSubObject(this);
        }
Esempio n. 8
0
		public void ViewState ()
		{
			LiteralPoker p = new LiteralPoker ();
			p.Text = "foo";

			LiteralPoker copy = new LiteralPoker ();
			copy.LoadState (p.SaveState ());
			Assert.AreEqual (copy.Text, "foo", "A1");
		}
Esempio n. 9
0
		public void AddParsedSubObject3 ()
		{
			LiteralPoker p = new LiteralPoker (true);
			p.ParsedSubObject (new LiteralControl ("Hey!"));
			Assert.AreEqual (0, p.Controls.Count, "#01");
			Assert.AreEqual ("Hey!", p.Text, "#02");
		}
Esempio n. 10
0
		public void AddParsedSubObject2 ()
		{
			LiteralPoker p = new LiteralPoker (true);
			p.Text = "hey";
			p.ParsedSubObject (p);
		}
Esempio n. 11
0
		public void AddParsedSubObject1 ()
		{
			LiteralPoker p = new LiteralPoker (true);
			p.ParsedSubObject (this);
		}
Esempio n. 12
0
		public void ControlsCollection ()
		{
			LiteralPoker p = new LiteralPoker ();

			Assert.AreEqual (p.ControlCollection ().GetType (),
					typeof (EmptyControlCollection), "A1");
		}