public void InsertNumber_NormalInsert_ReturnResult2() { int expected = 120; int result = Inserter.InsertNumber(8, 15, 3, 8); Assert.AreEqual(expected, result); }
public void InsertNumberTest_NegativeIndex_ArgumentException() { int i = 5; int j = 2; Inserter.InsertNumber(8, 15, i, j); }
public void InsertNumber_NormalInsert_ReturnResult1() { int expected = 19; int result = Inserter.InsertNumber(7, 12, 2, 4); Assert.AreEqual(expected, result); }
public void InsertNumberTest_TwoIntNumbers_ConvertedNumber() { int actual = Inserter.InsertNumber(8, 15, 3, 8); int expected = 120; Assert.AreEqual(expected, actual); }
public void InsertNumber_NormalInsert_ReturnResult3() { int expected = 15; int result = Inserter.InsertNumber(15, 15, 0, 0); Assert.AreEqual(expected, result); }
public void InsertNumberMethod_CorrectData_ReturnNewIntegerNumber() { int expectedNumber = 120; int actNumber = Inserter.InsertNumber(8, 15, 3, 8); Assert.AreEqual(expectedNumber, actNumber); }
public void InsertNumber_ThrowException_WrongInterval() { Inserter.InsertNumber(7, 12, 9, 6); }
public static int InsertNumberTest(int firstNumber, int secondNumber, int i, int j) { return(Inserter.InsertNumber(firstNumber, secondNumber, i, j)); }
public void InsertNumberMethod_IndexArgsBiggerThanRange_ArgumentOutOfRangeException() { Inserter.InsertNumber(8, 15, 32, 32); }
public void InsertNumberMethod_FirstIndBiggerThanSecondInd_ArgumentOutOfRangeException() { Inserter.InsertNumber(8, 15, 10, 5); }
public void InsertNumber_ThrowArgumentException() { NUnit.Framework.Assert.Throws <ArgumentException>(() => Inserter.InsertNumber(8, 12, 4, 2)); }
public void InsertNumberMethod_IndexArgsBiggerThanRange_ArgumentOutOfRangeException() { Assert.Throws <ArgumentOutOfRangeException>(() => Inserter.InsertNumber(8, 15, 32, 32)); }
public void InsertNumberMethod_IndexArgsLowerThanZero_ArgumentOutOfRangeException() { Assert.Throws <ArgumentOutOfRangeException>(() => Inserter.InsertNumber(8, 15, -1, -1)); }
public void InsertNumberMethod_FirstIndBiggerThanSecondInd_ArgumentOutOfRangeException() { Assert.Throws <ArgumentOutOfRangeException>(() => Inserter.InsertNumber(8, 15, 10, 5)); }
public int InsertNumberMethod_CorrectData_ReturnNewIntegerNumber(int firstNum, int secondNum, int firstInd, int secondInd) { return(Inserter.InsertNumber(firstNum, secondNum, firstInd, secondInd)); }
public static void InsertNumberTest_FirstNumber_SecondNumber_i_j_ArgumentException(int firstNumber, int secondNumber, int i, int j) => Assert.Throws <ArgumentException>(() => Inserter.InsertNumber(firstNumber, secondNumber, i, j));
public int InsertTest(int a, int b, int i, int j) { return(Inserter.InsertNumber(a, b, i, j)); }
public void InsertNumberTest() { Assert.AreEqual(15, Inserter.InsertNumber(15, 15, 0, 0)); Assert.AreEqual(9, Inserter.InsertNumber(8, 15, 0, 0)); Assert.AreEqual(120, Inserter.InsertNumber(8, 15, 3, 8)); }
public void InsertNumber_ThrowArgumentOutOfRangeException() { NUnit.Framework.Assert.Throws <ArgumentOutOfRangeException>(() => Inserter.InsertNumber(8, 12, -4, 2)); NUnit.Framework.Assert.Throws <ArgumentOutOfRangeException>(() => Inserter.InsertNumber(8, 12, -4, -2)); }
public void InsertNumberNegativeNumbersTest() { Assert.AreEqual(-15, Inserter.InsertNumber(-15, -15, 0, 0)); Assert.AreEqual(-7, Inserter.InsertNumber(-8, -15, 0, 0)); Assert.AreEqual(-120, Inserter.InsertNumber(-8, -15, 3, 8)); }
public void InsertNumberMethod_IndexArgsLowerThanZero_ArgumentOutOfRangeException() { Inserter.InsertNumber(8, 15, -1, -1); }
public void InsertNumberArgumentExceptionTest() { Assert.ThrowsException <ArgumentException>(() => Inserter.InsertNumber(-15, -15, 32, 33)); Assert.ThrowsException <ArgumentException>(() => Inserter.InsertNumber(-15, -15, -1, -2)); Assert.ThrowsException <ArgumentException>(() => Inserter.InsertNumber(-15, -15, 8, 3)); }
public void InsertNumberBoundaryArgumentsTest() { Assert.AreEqual(Int32.MinValue + 1, Inserter.InsertNumber(Int32.MinValue, Int32.MaxValue, 0, 0)); Assert.AreEqual(-8, Inserter.InsertNumber(-8, -15, 31, 31)); Assert.AreEqual(15, Inserter.InsertNumber(8, 15, 0, 31)); }
public int InsertNumberTest(int number1, int number2, int i, int j) { return(Inserter.InsertNumber(number1, number2, i, j)); }