public void ToArgb32_Retval() { // arrange var source = new Rgba64(5140, 9766, 19532, 29555); var expected = new Argb32(20, 38, 76, 115); // act var actual = source.ToArgb32(); // assert Assert.Equal(expected, actual); }
public void Rgba64_ToArgb32() { // arrange var rgba64 = new Rgba64(0.08f, 0.15f, 0.30f, 0.45f); var actual = default(Argb32); var expected = new Argb32(20, 38, 76, 115); // act rgba64.ToArgb32(ref actual); // assert Assert.Equal(expected, actual); }