public void AnArgumentNullExceptionIsThrown() { var algorithmProvider = new TestSymmetricAlgorithmProvider(); #if!NET_3_5 var exception = Assert.Throws<ArgumentNullException>(() => algorithmProvider.CallBaseConfigure("AesManaged", null)); #else var exception = Assert.Throws<ArgumentNullException>(() => algorithmProvider.CallBaseConfigure("Rijndael", null)); #endif Assert.Equal("algorithmKey", exception.ParamName); }
public void AnArgumentNullExceptionIsThrown() { var algorithmProvider = new TestSymmetricAlgorithmProvider(); var exception = Assert.Throws<ArgumentNullException>(() => algorithmProvider.CallBaseConfigure(null, new byte[0])); Assert.Equal("algorithmName", exception.ParamName); }