public void LolTeger32TestA() { Int32 expected = 30; SuperStream target = new SuperStream(Endianess.Little); target.WriteLolTeger32(expected); target.Position = 0; var actual = target.ReadLolTeger32(); Assert.AreEqual(expected, actual); }
public void LolTeger32TestB() { for (int expectedAdd = 0; expectedAdd < 1009; expectedAdd++) { Int32 expected = 30; SuperStream target = new SuperStream(Endianess.Little); target.WriteLolTeger32( expected, additionalData: expectedAdd); target.Position = 0; int actualAdd; var actual = target.ReadLolTeger32(out actualAdd); Assert.AreEqual(expected, actual, "LolTeger value; i=" + expectedAdd.ToString()); Assert.AreEqual(expectedAdd, actualAdd, "LolTeger additional value; i=" + expectedAdd.ToString()); } }