public void FrameStatistics_RecordsSceneLength() { var lightSection = new LightSectionBuilder() .WithAllLights(arbitraryLight) .Build(); var frames = new FrameBuilder() .AddFrame() .WithFrameLength(1000) .WithRepeated(false) .WithLightSection(lightSection) .AddFrame() .WithFrameLength(500) .WithRepeated(false) .WithLightSection(lightSection) .Build(); var stats = new FrameStatistics(frames); Assert.AreEqual(frames.Sum(frame => frame.Length), stats.SceneLength); }