public void ConvertIntegerToBytes() { var t_Converter = new ValueTypeConverter(); var t_Bytes = t_Converter.ConvertValueTypeToBytes(10); t_Bytes.Length.Should().Be(4, "We converted an integer."); t_Bytes[0].Should().Be(10); }
public void Store <T>(T Value) where T : struct { m_Storage = m_Converter.ConvertValueTypeToBytes(Value).ToList(); }