public void AddFrame_WhenFrameIsValid_IncreasesFrameCount()
        {
            var flashScreenVideo = new FlashScreenVideo(new FlashScreenVideoParameters(32, 32, 30));

            flashScreenVideo.AddFrame(new BitmapVideoFrame(new Bitmap(32, 32)));
            Assert.AreEqual(1, flashScreenVideo.FrameCount);

            flashScreenVideo.AddFrame(new BitmapVideoFrame(new Bitmap(32, 32)));
            Assert.AreEqual(2, flashScreenVideo.FrameCount);
        }
        public void AddFrame_WhenFrameHeightIsIncorrect_Throws()
        {
            var flashScreenVideo = new FlashScreenVideo(new FlashScreenVideoParameters(32, 16, 30));

            var ex = Assert.Throws<ArgumentException>(() => flashScreenVideo.AddFrame(new BitmapVideoFrame(new Bitmap(32, 20))));
            Assert.Contains(ex.Message, "The frame dimensions must exactly equal those of the video.");
        }
        public void AddFrame_WhenFrameIsNull_Throws()
        {
            var flashScreenVideo = new FlashScreenVideo(new FlashScreenVideoParameters(32, 16, 30));

            Assert.Throws<ArgumentNullException>(() => flashScreenVideo.AddFrame(null));
        }