Tests.EncryptExceptionTests.EncryptionNoPublicKeyTest C# (CSharp) Method

EncryptionNoPublicKeyTest() private method

private EncryptionNoPublicKeyTest ( ) : void
return void
		public void EncryptionNoPublicKeyTest()
		{
			const string privateKey = "1158b1ea7d45919968b87dab6cab27eff5871304ea9856588e9ec02a6d93c42e";
			Assert.Throws<ArgumentOutOfRangeException>(
				() => { Cryptor.EncryptFileWithStream(Utilities.HexToBinary(privateKey), null, null, "badfile"); });
		}