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