Exemplo n.º 1
0
        public void RemoveRangeAt_WhenIndexAndRange_ShoudlRemoveRange(int index, int count, int inputMockNumb, int expectedinputMockNumb)
        {
            Setup(inputArray: Mocks.GetMock_RemoveRange(inputMockNumb), expectedArray: Mocks.GetMock_RemoveRange(expectedinputMockNumb));

            actual.RemoveRangeAt(index, count);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void RemoveAt_WhenIndexAndLinkedList_ShouldThrowIndexOutOfRangeException(int index, int inputMockNumb)
        {
            Setup(inputArray: Mocks.GetMock_Remove(inputMockNumb));

            Assert.Throws <IndexOutOfRangeException>(() => actual.RemoveAt(index));
        }
Exemplo n.º 3
0
        public void RemoveRangeAtFirst_WhenCount_ShouldRemoveRangeFromFirst(int count, int inputMockNumb, int expectedinputMockNumb)
        {
            Setup(inputArray: Mocks.GetMock_RemoveRange(inputMockNumb), expectedArray: Mocks.GetMock_RemoveRange(expectedinputMockNumb));

            actual.RemoveRangeAtFirst(count);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 4
0
        public void AddListAt_WhenIndexAndDLinkedList_ShouldThrowIndexOutOfRangeException(int index, int inputMockNumb, int numbListForAdding)
        {
            Setup(inputArray: Mocks.GetMock_AddList(inputMockNumb), arrayForAdding: Mocks.GetMock_AddList(numbListForAdding));

            Assert.Throws <IndexOutOfRangeException>(() => actual.AddListAt(index, listForAdding));
        }
Exemplo n.º 5
0
        public void AddListAt_WhenIndexAndDLinkedList_ShouldAddDLinkedListAtIndex(int index, int inputMockNumb, int numbListForAdding, int expectedinputMockNumb)
        {
            Setup(Mocks.GetMock_AddList(inputMockNumb), Mocks.GetMock_AddList(numbListForAdding), Mocks.GetMock_AddList(expectedinputMockNumb));

            actual.AddListAt(index, listForAdding);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 6
0
        public void AddAt_WhenIndexAndStringValue_ShouldThrowIndexOutOfRangeException(int index, string value, int inputinputMockNumb)
        {
            Setup(inputArray: Mocks.GetMock_AddAt(inputinputMockNumb));

            Assert.Throws <IndexOutOfRangeException>(() => actual.AddAt(index, value));
        }
Exemplo n.º 7
0
        public void AddAt_WhenIndexAndStringValue_ShouldAddElementByIndex(string value, int index, int inputinputMockNumb, int expectedinputMockNumb)
        {
            Setup(inputArray: Mocks.GetMock_AddAt(inputinputMockNumb), expectedArray: Mocks.GetMock_AddAt(expectedinputMockNumb));

            actual.AddAt(index, value);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 8
0
        public void AddAtFirst_WhenValue_ShouldAddtoFirst(string value, int inputinputMockNumb, int expectedinputMockNumb)
        {
            Setup(inputArray: Mocks.GetMock_AddAt(inputinputMockNumb), expectedArray: Mocks.GetMock_AddAt(expectedinputMockNumb));

            actual.AddAtFirst(value);

            Assert.AreEqual(expected, actual);
        }