Tests.DecryptExceptionTests.DecryptioInvalidPrivateKeyTest C# (CSharp) Method

DecryptioInvalidPrivateKeyTest() private method

private DecryptioInvalidPrivateKeyTest ( ) : void
return void
		public void DecryptioInvalidPrivateKeyTest()
		{
			const string privateKey =
				"863df54207c285feac2c22235c336869fee8dba6605b8e1bc45cc8aa5e1be3fd7e53781865717d686cb3fee427823ffd8c71ea6a4d8f79c0b410457c9f881fa3";
			Assert.Throws<ArgumentOutOfRangeException>(
				() =>
				{
					Cryptor.DecryptFileWithStream(Utilities.HexToBinary(privateKey), "badfile",
						Path.Combine("Testfiles", "decrypted"));
				});
		}