public static void Blit_RotateLeft_UInt() { uint sut = 0b01010101_01010101_01010101_01010101; Assert.Equal((uint)0b10101010_10101010_10101010_10101010, Blit.RotateLeft(sut, 1)); Assert.Equal((uint)0b01010101_01010101_01010101_01010101, Blit.RotateLeft(sut, 2)); Assert.Equal((uint)0b10101010_10101010_10101010_10101010, Blit.RotateLeft(sut, 3)); }
public static void Blit_RotateLeft_Byte() { byte sut = 0b01010101; Assert.Equal((byte)0b10101010, Blit.RotateLeft(sut, 1)); Assert.Equal((byte)0b01010101, Blit.RotateLeft(sut, 2)); Assert.Equal((byte)0b10101010, Blit.RotateLeft(sut, 3)); }
public static void Blit_RotateLeft_ULong() { ulong sut = 0b01010101_01010101_01010101_01010101_01010101_01010101_01010101_01010101; Assert.Equal((ulong)0b10101010_10101010_10101010_10101010_10101010_10101010_10101010_10101010, Blit.RotateLeft(sut, 1)); Assert.Equal((ulong)0b01010101_01010101_01010101_01010101_01010101_01010101_01010101_01010101, Blit.RotateLeft(sut, 2)); Assert.Equal((ulong)0b10101010_10101010_10101010_10101010_10101010_10101010_10101010_10101010, Blit.RotateLeft(sut, 3)); }