Ejemplo n.º 1
0
 public void OTTagEqualsTest5b()
 {
     OTTag target = new OTTag(new byte[4] { 1, 3, 5, 7 });
     uint tagValue = 0x01030509;
     bool expected = false;
     bool actual;
     actual = target.Equals(tagValue);
     Assert.AreEqual(expected, actual, "OTTag not as expected: hash = " + target.GetHashCode());
 }
Ejemplo n.º 2
0
 public void OTTagEqualsTest4e()
 {
     OTTag target = new OTTag(new byte[4] { 97, 98, 99, 100 });
     string tag = null;
     bool expected = false;
     bool actual;
     actual = target.Equals(tag);
     Assert.AreEqual(expected, actual, "Unexpected result from OTTag.Equals(OTTag); hash = " + target.GetHashCode());
 }
Ejemplo n.º 3
0
 public void OTTagEqualsTest2e()
 {
     OTTag target = new OTTag(new byte[4] { 1, 3, 5, 7 });
     byte[] tagBuffer = new byte[5] { 1, 3, 5, 7, 9 };
     bool expected = false;
     bool actual;
     actual = target.Equals(tagBuffer);
     Assert.AreEqual(expected, actual, "Unexpected result from OTTag.Equals(byte[]); hash = " + target.GetHashCode());
 }
Ejemplo n.º 4
0
 public void OTTagEqualsTest3b()
 {
     OTTag target = new OTTag(new byte[4] { 1, 3, 5, 7 });
     OTTag tag = new OTTag(new byte[4] { 1, 3, 5, 9 });
     bool expected = false;
     bool actual;
     actual = target.Equals(tag);
     Assert.AreEqual(expected, actual, "Unexpected result from OTTag.Equals(OTTag); hash = " + target.GetHashCode());
 }
Ejemplo n.º 5
0
 public void OTTagEqualsTest1d()
 {
     OTTag target = new OTTag(new byte[4] { 1, 3, 5, 7 });
     object obj = new object();
     bool expected = false;
     bool actual;
     actual = target.Equals(obj);
     Assert.AreEqual(expected, actual, "Unexpected result from OTTag.Equals(object); hash = " + target.GetHashCode());
 }