// This 500ms animation is expected to climb from 0 to 50, reset to 0 instantly, and repeat forever.
// Given that we are taking 5measurements per cycle, we can expect the followings:
Assert.AreEqual(10d,averageIncrement,1.5,"an rough average of increment (exluding the drop) of 10 (+-15% error margin)");
Assert.IsTrue(incrementSizes.Count(x=>x>3)>8,$"at least 10 (-2 error margin: might miss first and/or last) sets of continuous increments that size of 4 (+-1 error margin: sliding slot): {string.Join(",",incrementSizes)}");
Assert.AreEqual(10d,averageIncrement,2.5,$"Expected an rough average of increment (excluding the drop) of 10 (+-25% error margin).\n"+context);
Assert.IsTrue(incrementSizes.Count(x=>x>=3)>=8,$"Expected at least 10sets (-2 error margin: might miss first and/or last) of continuous increments in size of 4 (+-1 error margin: sliding slot).\n"+context);