6 references to new
System.Drawing.Common.Tests (6)
System\Drawing\Imaging\EncoderParametersTests.cs (1)
30yield return new object[] { new EncoderParameter[1] { new(Encoder.ChrominanceTable, 0) } };
System\Drawing\Imaging\EncoderParameterTests.cs (5)
42using EncoderParameter ep = new(encoder, value); 200using EncoderParameter ep = new(s_anyEncoder, 0) 228using EncoderParameter ep = new(s_anyEncoder, 0); 268yield return new object[] { new Action(() => new EncoderParameter(null, 0)) }; 287Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, 0));