private static void SetValue_InvalidIndex_ThrowsException(string paramName, int x, int y) { var matrix = new MagickColorMatrix(2); Assert.Throws <ArgumentOutOfRangeException>(paramName, () => { matrix.SetValue(x, y, 1); }); }
public void Test_Value() { MagickColorMatrix matrix = new MagickColorMatrix(2); matrix.SetValue(0, 0, 1.5); Assert.AreEqual(1.5, matrix.GetValue(0, 0)); Assert.AreEqual(0.0, matrix.GetValue(0, 1)); Assert.AreEqual(0.0, matrix.GetValue(1, 0)); }
public void SetValue_ValidIndex_SetsValue() { var matrix = new MagickColorMatrix(2); matrix.SetValue(1, 0, 1.5); Assert.Equal(0.0, matrix.GetValue(0, 0)); Assert.Equal(0.0, matrix.GetValue(0, 1)); Assert.Equal(1.5, matrix.GetValue(1, 0)); Assert.Equal(0.0, matrix.GetValue(1, 1)); }