public void SifreliPaket_SifreliIcerilAl_Versiyon2XBasarisiz()
 {
     Assert.ThrowsException <InvalidOperationException>(() =>
     {
         SifreliPaket.SifreliIcerikAl(TestComponents.SIFRELI_PAKET_V2X_SIFRELI_ICERIK_BOS_FILE_PATH);
     });
 }
        public void SifreliPaket_SifreliIcerilAl_Versiyon1XBasarili()
        {
            using (var ms = new MemoryStream(TestComponents.SIFRELI_PAKET_V1X_BYTE_ARRAY()))
            {
                var sifreliIcerik = SifreliPaket.SifreliIcerikAl(ms);

                Assert.IsTrue(sifreliIcerik != null && sifreliIcerik.Length > 0);
            }

            var sifreliIcerik2 = SifreliPaket.SifreliIcerikAl(TestComponents.SIFRELI_PAKET_V1X_FILE_PATH);

            Assert.IsTrue(sifreliIcerik2 != null && sifreliIcerik2.Length > 0);
        }
 public void SifreliPaket_SifreliIcerikAl_PaketDosyaYoluGecersiz()
 {
     Assert.ThrowsException <FileNotFoundException>(() => { SifreliPaket.SifreliIcerikAl(@"C:\fakepath.eyps"); });
 }
 public void SifreliPaket_SifreliIcerikAl_PaketDosyaYoluBos()
 {
     Assert.ThrowsException <ArgumentNullException>(() => { SifreliPaket.SifreliIcerikAl(""); });
 }