You need to implement a basic calculator that supports addition, subtraction, multiplication, and division operations. The functionalities should be added in an Calculator class placed in the /app/ directory.
Requirements:
Create a class named Calculator.
Implement four methods within the Calculator class:
add(a: float, b: float) -> float: Returns the sum of a and b.
subtract(a: float, b: float) -> float: Returns the result of subtracting b from a.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the result of dividing a by b. If b is zero, raise a ValueError with the message "Cannot divide by zero."
Ensure that all methods accept both integer and floating-point numbers as input and handle them correctly.
Include appropriate unit tests to verify the correctness of each method implemented in the Calculator class.
The implementation must satisfy the test cases provided in the test code, ensuring that all functionalities are covered and work as expected.