Esempio n. 1
0
        public void BufferRangeEquals()
        {
            var range = new BufferRange(new BufferPosition(1, 1), new BufferPosition(2, 2));

            Assert.False(range.Equals(null));
            Assert.True(range.Equals(range));
            Assert.NotNull(range.GetHashCode());
        }
Esempio n. 2
0
 public bool Equals(BufferFileRange other)
 {
     return(_range == other._range ||
            _range.Equals(other._range));
 }