123456789101112131415161718192021222324252627 |
- using DemoExam;
- using DemoExam.Model;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using System.Collections.Generic;
- namespace UnitTestProject
- {
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void CheckStatisticsCalculator1()
- {
- StatisticsCalculator statisticsCalculator = new StatisticsCalculator();
- List<Requests> requests = new List<Requests>()
- {
- new Requests() { StatusId = 2 },
- new Requests() { StatusId = 3 },
- new Requests() { StatusId = 3 },
- new Requests() { StatusId = 3 },
- new Requests() { StatusId = 1 }
- };
- Assert.AreEqual(3, statisticsCalculator.CalculateCompleteRequests(requests));
- }
- }
- }
|