Пример #1
0
    public void TestMethod1()
    {
        int[] array    = { 1, 5, 1 };
        bool  actual   = BiggerFromItsNeighbours.BiggerThanItsNeghbours(array, position: 1);
        bool  expected = true;

        Assert.AreEqual(expected, actual);
    }
Пример #2
0
    public void TestMethod6()
    {
        int[] array    = { 1, 2, 3 };
        bool  actual   = BiggerFromItsNeighbours.BiggerThanItsNeghbours(array, position: 0);
        bool  expected = false;

        Assert.AreEqual(expected, actual);
    }
Пример #3
0
    public void TestMethod7()
    {
        int[] numbers = { 1, 2, 3 };

        bool actual   = BiggerFromItsNeighbours.IsBiggerThanItsNeighbours(numbers, index: 2);
        bool expected = true;

        Assert.AreEqual(expected, actual);
    }
Пример #4
0
    public void TestMethod4()
    {
        int[] numbers = { 5, 1, 5 };

        bool actual   = BiggerFromItsNeighbours.IsBiggerThanItsNeighbours(numbers, index: 1);
        bool expected = false;

        Assert.AreEqual(expected, actual);
    }