public void TestMethod1(int[] nums, int expected)
        {
            // Arrange
            FindPivotIndex question = new FindPivotIndex();

            // Act
            int actual = question.PivotIndex(nums);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Example #2
0
 public void BeforeEach()
 {
     findPivotIndex = new FindPivotIndex();
 }