Пример #1
0
        public void ShouldCalculatAveragePriceWithSuccess()
        {
            //Arrange
            var operation = FakeOperation.CreateSuccess();

            //Act
            var result = operation.AvgPrice();

            //Assert
            result.Should().Be((operation.Quantity * operation.Price) / operation.Quantity);
        }