GetParameterValue() public method

Returns the parameter value for the name provided
public GetParameterValue ( string parameterName ) : object
parameterName string The parameter name
return object
Exemplo n.º 1
0
        public void TestParameters()
        {
            Hashtable parameters = new Hashtable();


            IUIGridColumn column = new UIGridColumn("heading", null, null, null, true, 100,
                                                   PropAlignment.left, parameters);

            Assert.AreEqual(0, column.Parameters.Count);
            column.Parameters.Add("name", "value");
            Assert.IsNull(column.GetParameterValue("somename"));
            Assert.AreEqual("value", column.GetParameterValue("name"));
        }
Exemplo n.º 2
0
        public void TestParameters_Null()
        {

            IUIGridColumn column = new UIGridColumn("heading", null, null, null, true, 100,
                                                   PropAlignment.left, null);

            Assert.IsNull(column.GetParameterValue("somename"));
        }