public static void Blit_RotateRight_UInt() { uint sut = 0b01010101_01010101_01010101_01010101; Assert.Equal((uint)0b10101010_10101010_10101010_10101010, Blit.RotateRight(sut, 1)); Assert.Equal((uint)0b01010101_01010101_01010101_01010101, Blit.RotateRight(sut, 2)); Assert.Equal((uint)0b10101010_10101010_10101010_10101010, Blit.RotateRight(sut, 3)); }
public static void Blit_RotateRight_Byte() { byte sut = 0b01010101; Assert.Equal((byte)0b10101010, Blit.RotateRight(sut, 1)); Assert.Equal((byte)0b01010101, Blit.RotateRight(sut, 2)); Assert.Equal((byte)0b10101010, Blit.RotateRight(sut, 3)); }
public static void Blit_RotateRight_ULong() { ulong sut = 0b01010101_01010101_01010101_01010101_01010101_01010101_01010101_01010101; Assert.Equal((ulong)0b10101010_10101010_10101010_10101010_10101010_10101010_10101010_10101010, Blit.RotateRight(sut, 1)); Assert.Equal((ulong)0b01010101_01010101_01010101_01010101_01010101_01010101_01010101_01010101, Blit.RotateRight(sut, 2)); Assert.Equal((ulong)0b10101010_10101010_10101010_10101010_10101010_10101010_10101010_10101010, Blit.RotateRight(sut, 3)); }