public void Read_FloatAsDouble(byte[] buf, double want) { using (var s = new OtpInputStream(buf)) { double got = s.ReadDouble(); Assert.AreEqual(want, got); } }