Manages a cell that holds a numeric value
Inheritance: System.Windows.Forms.DataGridViewTextBoxCell
        public void Test_SetCellTemplate()
        {
            //---------------Set up test pack-------------------
            DataGridViewNumericUpDownColumn dtColumn = new DataGridViewNumericUpDownColumn();
            NumericUpDownCell NumericUpDownCell = new NumericUpDownCell();
            //---------------Assert Precondition----------------
            Assert.AreNotSame(NumericUpDownCell, dtColumn.CellTemplate);
            //---------------Execute Test ----------------------
            dtColumn.CellTemplate = NumericUpDownCell;

            //---------------Test Result -----------------------
            Assert.AreSame(NumericUpDownCell, dtColumn.CellTemplate);
        }
        public void TestNumericUpDownCell_HasCorrectSettings()
        {
            //---------------Set up test pack-------------------
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            NumericUpDownCell numericUpDownCell = new NumericUpDownCell();
            //---------------Test Result -----------------------
            Assert.AreEqual("0.00", numericUpDownCell.Style.Format);
            Assert.AreEqual(typeof(NumericUpDownEditingControl), numericUpDownCell.EditType);
            Assert.AreEqual(typeof(Decimal), numericUpDownCell.ValueType);
            Assert.IsInstanceOf(typeof(Decimal), numericUpDownCell.DefaultNewRowValue);

            Decimal newRowValue = (Decimal)numericUpDownCell.DefaultNewRowValue;
            Assert.AreEqual(0D, newRowValue);
        }