public void EncodeDecode_Configuration_NoLossOfData(bool encrypt, bool compress)
        {
            Bitmap stegoObject;
            string decodedMessage;

            stegoObject    = _stegoModel.EncodeMessageInImage(new Bitmap(_image), _message, _key, _seed, encrypt, compress);
            decodedMessage = _stegoModel.DecodeMessageFromImage(stegoObject, _key, _seed, encrypt, compress);
            Assert.AreEqual(decodedMessage, _message);
        }
        private void ThreadedEncode(object sender, DoWorkEventArgs e)
        {
            Tuple <Bitmap, string, string, string, bool, bool> EncodingArgument = e.Argument as Tuple <Bitmap, string, string, string, bool, bool>;

            Bitmap coverImage    = EncodingArgument.Item1;
            String message       = EncodingArgument.Item2;
            string encryptionKey = EncodingArgument.Item3;
            string stegoSeed     = EncodingArgument.Item4;
            bool   encrypt       = EncodingArgument.Item5;
            bool   compress      = EncodingArgument.Item6;

            try
            {
                Bitmap stegoObject  = _stegoModel.EncodeMessageInImage(coverImage, message, encryptionKey, stegoSeed, encrypt, compress);
                var    EncodingInfo = new Tuple <Bitmap, string, string, bool, bool>(stegoObject, encryptionKey, stegoSeed, encrypt, compress);
                e.Result = EncodingInfo;
            }
            catch (NotifyUserException exception)
            {
                throw new Exception(exception.Message);
            }
        }