Example #1
0
 public void TestEqualsReturnsFalseIfOtherIsNull()
 {
     OxmlRange target = new OxmlRange(0, 1, 2);
     OxmlRange other = null;
     bool expected = false;
     bool actual = target.Equals(other);
     Assert.AreEqual(expected, actual);
 }
Example #2
0
 public void TestEqualsReturnsFalseForDiffStartProperty()
 {
     OxmlRange target = new OxmlRange(0, 1, 2);
     OxmlRange other = new OxmlRange(0, 3, 2);
     bool expected = false;
     bool actual = target.Equals(other);
     Assert.AreEqual(expected, actual);
 }
Example #3
0
 public void TestEqualsReturnsTrueIfAllPropertiesEqual()
 {
     OxmlRange target = new OxmlRange(0, 1, 2);
     OxmlRange other = new OxmlRange(0, 1, 2);
     bool expected = true;
     bool actual = target.Equals(other);
     Assert.AreEqual(expected, actual);
 }