public void ApiWrapper_ReturnAllProjectWithCoverage_ExepctUnitTests() { var dataSource = new BuildDetails { information = new[] { new Information { coverageData = new Coveragedata { modules = new[] { new Module { blocksCovered = 1, blocksNotCovered = 1, name = "newBlock" }, new Module { blocksCovered = 1, blocksNotCovered = 1, name = "newBlockUnitTest" }, } } } } }; var result = ApiWrapper.ComputeCoverage(dataSource); Assert.AreEqual(1, result.Length); }