Example #1
0
 public void CompareToTest()
 {
     Oid target = new Oid(); // TODO: Initialize to an appropriate value
     object obj = null; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.CompareTo(obj);
     actual.Should().Be(expected);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Example #2
0
        public void TestOidComparisons()
        {
            Oid lower = new Oid("4a7067c30a57000000008ecb");
            Oid higher = new Oid("5a7067c30a57000000008ecb");

            Assert.AreEqual(1, lower.CompareTo(null));
            Assert.AreEqual(1, higher.CompareTo(lower));

            Assert.IsTrue(lower < higher);
            Assert.IsTrue(higher > lower);
        }