Esempio n. 1
0
        public void CalculateMedian()
        {
            var invoiceList = _invoiceRepo.Retrieve();
            var actual      = _invoiceRepo.CalculateMedian(invoiceList);

            Assert.AreEqual(10M, actual);
        }
        public void CalculateMedianTest()
        {
            var repo        = new InvoiceRepository();
            var invoiceList = repo.Retrieve();

            var actual = repo.CalculateMedian(invoiceList);

            Assert.AreEqual(10m, actual);
        }
Esempio n. 3
0
        public void CalculateMedianTest()
        {
            InvoiceRepository invoRepo = new InvoiceRepository();
            var invoiceList            = invoRepo.Retrieve();
            var expected = 10M;

            var actual = invoRepo.CalculateMedian(invoiceList);

            Assert.AreEqual(expected, actual);
        }
        public void CalculateMedianTest()
        {
            // Arrange
            InvoiceRepository repository = new InvoiceRepository();
            var invoiceList = repository.Retrieve();

            // Act
            var actual = repository.CalculateMedian(invoiceList);

            // Assert
            Assert.AreEqual(10M, actual);
        }
        public void CalculateMedianTest()
        {
            // Arrange
            InvoiceRepository repository = new InvoiceRepository();
            var invoiceList = repository.Retrieve();

            // Act
            var actual = repository.CalculateMedian(invoiceList);

            // Assert
            Assert.AreEqual(10M, actual);
        }
        public void CalculateMedianTest()
        {
            //Begin Arrange
            InvoiceRepository repository = new InvoiceRepository();
            var invoiceList = repository.Retrieve();
            //End Arrange

            //Begin Act
            var actual = repository.CalculateMedian(invoiceList);
            //End Act

            //Begin Assert
            Assert.AreEqual(5M, actual);
            //End Assert
        }
Esempio n. 7
0
        public void CalculateMedianTest()
        {
            //Arrange
            InvoiceRepository invoiceRepository = new InvoiceRepository();
            var invoiceList = invoiceRepository.Retrieve();

            //Act
            var discountMedian = invoiceRepository.CalculateMedian(invoiceList);

            //Analyze
            TestContext.WriteLine(discountMedian.ToString());

            //Assert
            Assert.IsNotNull(invoiceList);
        }