public void ULongEnumsAreWrittenAndReadCorrectly(ULongEnum enumValue, ByteOrder byteOrder) { using (var baseStream = new MemoryStream()) { var constructWriter = new ConstructWriterStream(baseStream); constructWriter.WriteEnum(enumValue, byteOrder); baseStream.Seek(0, SeekOrigin.Begin); var constructReader = new ConstructReaderStream(baseStream); var result = constructReader.ReadEnum(typeof(ULongEnum), byteOrder); Assert.AreEqual(enumValue, result); } }
public void DataRowEnum_ULong(ULongEnum testEnum) { Assert.IsTrue(true); }
public void ULongEnumsAreReadCorrectly(ULongEnum enumValue, ByteOrder byteOrder) { var constructStream = new ConstructReaderStream(DataStream.Create((ulong)enumValue, byteOrder)); var result = constructStream.ReadEnum(typeof(ULongEnum), byteOrder); Assert.AreEqual(enumValue, result); }
public Primitives(sbyte sb, byte b, short s, ushort us, int i, uint ui, long l, ulong ul, SByteEnum sbe, ByteEnum be, ShortEnum se, UShortEnum use, IntEnum ie, UIntEnum uie, LongEnum le, ULongEnum ule, char c, bool bo, float f, double d, string str, Type t, int[] arr, object obj) { SByteConstructor = sb; ByteConstructor = b; ShortConstructor = s; UShortConstructor = us; IntConstructor = i; UIntConstructor = ui; LongConstructor = l; ULongConstructor = ul; SByteEnumConstructor = sbe; ByteEnumConstructor = be; ShortEnumConstructor = se; UShortEnumConstructor = use; IntEnumConstructor = ie; UIntEnumConstructor = uie; LongEnumConstructor = le; ULongEnumConstructor = ule; CharConstructor = c; BoolConstructor = bo; FloatConstructor = f; DoubleConstructor = d; StringConstructor = str; TypeConstructor = t; ArrayConstructor = arr; ObjectConstructor = obj; }