WriteDouble() public method

Write a double value to the stream.
public WriteDouble ( double d ) : void
d double The double to use.
return void
        public void Write_Double(double d, byte[] want)
        {
            byte[] got;
            using (var os = new OtpOutputStream())
            {
                os.WriteByte(OtpExternal.VersionTag);
                os.WriteDouble(d);
                Assert.AreEqual(want.Length, os.Position);
                got = os.ToArray();
            }

            CollectionAssert.AreEqual(want, got);
        }