/// <summary>
        /// Assert results of an analysis output.
        /// </summary>
        public static void AssertResults(AFAttribute output, AFTimeRange timeRange, IList <AFValue> expectedValues)
        {
            Contract.Requires(expectedValues != null);

            var actualValues = output.GetRecordedValues(timeRange);

            Assert.Equal(actualValues.Count, expectedValues.Count);
            for (int i = 0; i < actualValues.Count; i++)
            {
                Assert.Equal(actualValues[i], expectedValues[i]);
            }
        }