Пример #1
0
        public void Test1()
        {
            var arr    = new int[] { 4, 5, 6, 7, 0, 1, 2 };
            var result = solution.Search(arr, 0);

            Assert.AreEqual(4, result);
        }
Пример #2
0
        public void TestMethod1(int[] nums, int target, int expected)
        {
            // Arrange
            SearchinRotatedSortedArray question = new SearchinRotatedSortedArray();

            // Act
            int actual = question.Search(nums, target);

            // Result
            Assert.AreEqual(expected, actual);
        }