Beispiel #1
0
        public void AnalyseWeeksTest()
        {
            // Ensure that there are five product results
            Assert.AreEqual(5, Analysis.ProductsAnalysis.Count);

            // Loop over each product's testing
            foreach (KeyValuePair <String, ProductAnalysis> pair in Analysis.ProductsAnalysis)
            {
                // Count how many Devices of name device there are
                int count = Events.Where(evt => evt.Device == pair.Key).Count();

                // Ensure that there are some results
                Assert.IsTrue(count > 0);
            }
        }