public void Rgba64_ToBgr24() { // arrange var rgba64 = new Rgba64(0.08f, 0.15f, 0.30f, 0.45f); var actual = default(Bgr24); var expected = new Bgr24(20, 38, 76); // act rgba64.ToBgr24(ref actual); // assert Assert.Equal(expected, actual); }
public void Rgba64_ToBgr24() { // arrange var rgba64 = new Rgba64(0.08f, 0.15f, 0.30f, 0.45f); var actual = default(Bgr24); var expected = new Bgr24(20, 38, 76); // act rgba64.ToBgr24(ref actual); // assert Assert.Equal(expected, actual); }