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 = new List() { 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)); } } }