Beispiel #1
0
        public void ControlsCollection()
        {
            LiteralPoker p = new LiteralPoker();

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

            p.Text = "hey";
            p.ParsedSubObject(p);
        }
Beispiel #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");
        }
Beispiel #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");
        }
Beispiel #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");
        }
Beispiel #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");
		}
Beispiel #7
0
        public void AddParsedSubObject1()
        {
            LiteralPoker p = new LiteralPoker(true);

            p.ParsedSubObject(this);
        }
Beispiel #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");
		}
Beispiel #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");
		}
Beispiel #10
0
		public void AddParsedSubObject2 ()
		{
			LiteralPoker p = new LiteralPoker (true);
			p.Text = "hey";
			p.ParsedSubObject (p);
		}
Beispiel #11
0
		public void AddParsedSubObject1 ()
		{
			LiteralPoker p = new LiteralPoker (true);
			p.ParsedSubObject (this);
		}
Beispiel #12
0
		public void ControlsCollection ()
		{
			LiteralPoker p = new LiteralPoker ();

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