public void InsertNumber_ExeptionTest(int sourceNumber, int destinationNumber, int firstIndex, int secondIndex) { Assert.Throws <ArgumentException>(() => NumberProcessor.InsertNumber(sourceNumber, ref destinationNumber, firstIndex, secondIndex)); }
public void InsertNumber_Test(int sourceNumber, ref int destinationNumber, int firstIndex, int secondIndex, int result) { NumberProcessor.InsertNumber(sourceNumber, ref destinationNumber, firstIndex, secondIndex); Assert.AreEqual(destinationNumber, result); }