public void AllSectionsUnspecified_ThrowsException()
        {
            var builder = new FrameBuilder()
            .AddFrame()
            .WithFrameLength(100)
            .WithRepeated(true);

              Assert.Throws<ArgumentException>(() => builder.Build());
        }
        public void FrameLengthUnspecified_ThrowsException()
        {
            var builder = new FrameBuilder()
            .AddFrame()
            .WithRepeated(true)
            .WithLightSection(lightSection)
            .WithFanSection(fanSection)
            .WithRumbleSection(rumbleSection);

              Assert.Throws<ArgumentException>(() => builder.Build());
        }
        public void RepeatedAndFrameLengthAndOneSectionSpecified_Builds(AddSection addSection)
        {
            var builder = new FrameBuilder()
            .AddFrame()
            .WithFrameLength(100)
            .WithRepeated(true);

              addSection(builder);

              Assert.DoesNotThrow(() => builder.Build());
        }