public void CalculateBudgetPerManager_ManagerIdProvided_ReturnsCorrectTotalBudget() { var employeeHirachy = new EmployeeHierarchy(); string csvPath = "C:\\Uploads\\Employee-Hirachy.csv"; string managerID = "10002"; int expectedResult = 15000; // Act var result = employeeHirachy.CalculateBudgetPerManager(csvPath, managerID); // Assert Assert.AreEqual(expectedResult, result); }
public void CalculateBudgetPerManager_ManagerIdProvided_ReturnsInt() { // Arrange var employeeHirachy = new EmployeeHierarchy(); string csvPath = "C:\\Uploads\\Employee-Hirachy.csv"; string managerID = "10001"; int compare = 1; // Act var result = employeeHirachy.CalculateBudgetPerManager(csvPath, managerID); // Assert Assert.AreEqual(result.GetType(), compare.GetType()); }