Test.CBORObjectTest.TestEquals C# (CSharp) Méthode

TestEquals() private méthode

private TestEquals ( ) : void
Résultat void
        public void TestEquals()
        {
            var cborbytes = new byte[] { (byte)0xd8, 0x1e, (byte)0x82, 0x00, 0x19,
            0x0f, 0x50 };
              CBORObject cbor = CBORObject.DecodeFromBytes(cborbytes);
              CBORObject cbor2 = CBORObject.DecodeFromBytes(cborbytes);
              TestCommon.CompareTestEqualAndConsistent(cbor, cbor2);
              ERational erat = ERational.Create(0, 3920);
              cbor2 = CBORObject.FromObject(erat);
              TestCommon.CompareTestEqualAndConsistent(cbor, cbor2);
              cbor2 = CBORObject.FromObject(cbor2);
              TestCommon.CompareTestEqualAndConsistent(cbor, cbor2);
              TestWriteObj(erat, erat);
              erat = ERational.Create(
              EInteger.Zero,
              EInteger.FromString("84170882933504200501581262010093"));
              cbor = CBORObject.FromObject(erat);
              ERational erat2 = ERational.Create(
              EInteger.Zero,
              EInteger.FromString("84170882933504200501581262010093"));
              cbor2 = CBORObject.FromObject(erat2);
              TestCommon.CompareTestEqualAndConsistent(cbor, cbor2);
              cbor2 = CBORObject.FromObject(cbor2);
              TestCommon.CompareTestEqualAndConsistent(cbor, cbor2);
              TestWriteObj(cbor, cbor2);
              TestWriteObj(erat, erat2);
        }
CBORObjectTest