public void Given_a_portfolio_value_is_the_sum_of_all_position_valuations_When_the_weighting_of_a_position_is_required_Then_that_position_valuation_divided_by_the_portfolio_valuation() { // Criteria 1D //* Given a portfolio value is the sum of all position valuations var expected = 23.68M; var actual = Math.Round(fund.GetWeightageByStock(new Stock() { Symbol = "ROBO" }), 2); //* When the weighting of a position is required //* Then that position's valuation divided by the portfolio valuation will be returned Assert.AreEqual <decimal>(expected, actual); }