Exemplo n.º 1
0
        public void ButtonFieldBase_DefaultProperty()
        {
            PokerButtonFieldBase button = new PokerButtonFieldBase();

            Assert.AreEqual(ButtonType.Link, button.ButtonType, "ButtonType");
            Assert.AreEqual(false, button.CausesValidation, "CausesValidation");
            Assert.AreEqual(false, button.ShowHeader, "ShowHeader");
            Assert.AreEqual("", button.ValidationGroup, "ValidationGroup");
        }
Exemplo n.º 2
0
        public void ButtonFieldBase_AssignProperty()
        {
            PokerButtonFieldBase button = new PokerButtonFieldBase();

            button.ButtonType = ButtonType.Image;
            Assert.AreEqual(ButtonType.Image, button.ButtonType, "ButtonType");
            button.CausesValidation = true;
            Assert.AreEqual(true, button.CausesValidation, "CausesValidation");
            button.ShowHeader = true;
            Assert.AreEqual(true, button.ShowHeader, "ShowHeader");
            button.ValidationGroup = "test";
            Assert.AreEqual("test", button.ValidationGroup, "ValidationGroup");
        }
Exemplo n.º 3
0
        public void ButtonFieldBase_CopyProperties()
        {
            PokerButtonFieldBase button = new PokerButtonFieldBase();
            PokerButtonFieldBase copy   = new PokerButtonFieldBase();

            button.ButtonType       = ButtonType.Image;
            button.CausesValidation = true;
            button.ShowHeader       = true;
            button.ValidationGroup  = "test";
            button.DoCopyProperties(copy);
            Assert.AreEqual("test", copy.ValidationGroup, "ValidationGroup");
            Assert.AreEqual(ButtonType.Image, copy.ButtonType, "ButtonType");
            Assert.AreEqual(true, copy.CausesValidation, "CausesValidation");
            Assert.AreEqual(true, copy.ShowHeader, "ShowHeader");
        }
Exemplo n.º 4
0
		public void ButtonFieldBase_AssignProperty ()
		{
			PokerButtonFieldBase button = new PokerButtonFieldBase ();
			button.ButtonType = ButtonType.Image;
			Assert.AreEqual (ButtonType.Image, button.ButtonType, "ButtonType");
			button.CausesValidation = true;
			Assert.AreEqual (true, button.CausesValidation, "CausesValidation");
			button.ShowHeader = true;
			Assert.AreEqual (true, button.ShowHeader, "ShowHeader");
			button.ValidationGroup = "test";
			Assert.AreEqual ("test", button.ValidationGroup, "ValidationGroup"); 
		}
Exemplo n.º 5
0
		public void ButtonFieldBase_DefaultProperty ()
		{
			PokerButtonFieldBase button = new PokerButtonFieldBase ();
			Assert.AreEqual (ButtonType.Link, button.ButtonType, "ButtonType");
			Assert.AreEqual (false, button.CausesValidation, "CausesValidation");
			Assert.AreEqual (false, button.ShowHeader, "ShowHeader");
			Assert.AreEqual ("", button.ValidationGroup, "ValidationGroup"); 
		}
Exemplo n.º 6
0
		public void ButtonFieldBase_CopyProperties ()
		{
			PokerButtonFieldBase button = new PokerButtonFieldBase ();
			PokerButtonFieldBase copy = new PokerButtonFieldBase ();
			button.ButtonType = ButtonType.Image;
			button.CausesValidation = true;
			button.ShowHeader = true;
			button.ValidationGroup = "test";
			button.DoCopyProperties (copy);
			Assert.AreEqual ("test", copy.ValidationGroup, "ValidationGroup"); 
			Assert.AreEqual (ButtonType.Image, copy.ButtonType, "ButtonType");
			Assert.AreEqual (true, copy.CausesValidation, "CausesValidation");
			Assert.AreEqual (true, copy.ShowHeader, "ShowHeader");
		}