示例#1
0
 public void GeneratedCodeMappingsAreNotEqualIfStartLineIsNotEqual()
 {
     GeneratedCodeMapping left = new GeneratedCodeMapping(12, 34, 56, 87);
     GeneratedCodeMapping right = new GeneratedCodeMapping(21, 34, 56, 87);
     Assert.False(left == right);
     Assert.False(left.Equals(right));
     Assert.False(right.Equals(left));
     Assert.False(Equals(left, right));
 }
示例#2
0
 public void GeneratedCodeMappingsAreEqualIfDataIsEqual()
 {
     GeneratedCodeMapping left = new GeneratedCodeMapping(12, 34, 56, 78);
     GeneratedCodeMapping right = new GeneratedCodeMapping(12, 34, 56, 78);
     Assert.True(left == right);
     Assert.True(left.Equals(right));
     Assert.True(right.Equals(left));
     Assert.True(Equals(left, right));
 }