public void IntoString_RequiresAllArguments() { var ex1 = Assert.Throws <ArgumentNullException>(() => ByteArrayExtensions.IntoString(null, Encoding.Default)); var ex2 = Assert.Throws <ArgumentNullException>(() => new byte[1].IntoString(null)); Assert.Equal("bytes", ex1.ParamName); Assert.Equal("encoding", ex2.ParamName); }