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)); }
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)); }