public void CalculateModeTest()
        {
            var repo        = new InvoiceRepository();
            var invoiceList = repo.Retrieve();

            var actual = repo.CalculateMode(invoiceList);

            Assert.AreEqual(10m, actual);
        }
Beispiel #2
0
        public void CalculateMode()
        {
            var invoiceList = _invoiceRepo.Retrieve();

            var actual = _invoiceRepo.CalculateMode(invoiceList);

            Assert.IsNotNull(actual);
            Assert.AreEqual(10M, actual);
        }
Beispiel #3
0
        public void CalculateModeTest()
        {
            InvoiceRepository invoRepo = new InvoiceRepository();
            var invoiceList            = invoRepo.Retrieve();
            var expected = 10M;

            var actual = invoRepo.CalculateMode(invoiceList);

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

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

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

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

            // Assert
            Assert.AreEqual(10M, actual);
        }
Beispiel #6
0
        public void CalculateModeTest()
        {
            //Arrange
            InvoiceRepository invoiceRepository = new InvoiceRepository();
            var invoiceList = invoiceRepository.Retrieve();

            //Act
            var discountMode = invoiceRepository.CalculateMode(invoiceList);

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

            //Assert
            Assert.IsNotNull(invoiceList);
        }