public void MSUnitTest_Insertion_CorrectInputValues_PositiveTest()
        {
            int expected = Convert.ToInt32(TestContext.DataRow["ExpectedResult"]);

            int firstNumber    = Convert.ToInt32(TestContext.DataRow["FirstNumber"]);
            int secondNumber   = Convert.ToInt32(TestContext.DataRow["SecondNumber"]);
            int startPosition  = Convert.ToInt32(TestContext.DataRow["StartPosition"]);
            int finishPosition = Convert.ToInt32(TestContext.DataRow["FinishPosition"]);
            int actual         = NumberExtension.Insertion(firstNumber, secondNumber, startPosition, finishPosition);

            Assert.AreEqual(expected, actual);
        }
 public void Insertion_InputValuesGreater31OrLess0_ThrowsArgumentException(int first, int second, int startPosition, int finishPosition)
 {
     Assert.Throws <ArgumentException>(() => NumberExtension.Insertion(first, second, startPosition, finishPosition));
 }
 [TestCase(-8, -15, 1, 4, ExpectedResult = -6)] //-30
 public int Insertion_CorrectInputValues_PositiveTest(int first, int second, int startPosition, int finishPosition)
 {
     return(NumberExtension.Insertion(first, second, startPosition, finishPosition));
 }