Exemplo n.º 1
0
		public void NegativeZero() {
			SignedInt positive0 = new SignedInt(new byte[] { 0x00 });
			SignedInt negative0 = new SignedInt(new byte[] { 0x80 });

			Assert.AreEqual(0, positive0.Value);
			Assert.AreEqual(0, negative0.Value);
			Assert.AreEqual(negative0.ToByteArray(), positive0.ToByteArray());
		}
Exemplo n.º 2
0
        public void NegativeZero()
        {
            SignedInt positive0 = new SignedInt(new byte[] { 0x00 });
            SignedInt negative0 = new SignedInt(new byte[] { 0x80 });

            Assert.AreEqual(0, positive0.Value);
            Assert.AreEqual(0, negative0.Value);
            Assert.AreEqual(negative0.ToByteArray(), positive0.ToByteArray());
        }