Tests.EncryptExceptionTests.EncryptionNoPublicKeyInPairTest C# (CSharp) Method

EncryptionNoPublicKeyInPairTest() private method

private EncryptionNoPublicKeyInPairTest ( ) : void
return void
		public void EncryptionNoPublicKeyInPairTest()
		{
			const string privateKey = "1158b1ea7d45919968b87dab6cab27eff5871304ea9856588e9ec02a6d93c42e";
			var testKeyPair = new KeyPair(null, Utilities.HexToBinary(privateKey));
			Assert.Throws<NullReferenceException>(
				() => { Cryptor.EncryptFileWithStream(testKeyPair, "badfile"); });
		}