public void DefaultValues()
        {
            var actual = new RelativeEditLocation();

            Assert.AreEqual(0, actual.Size);
            Assert.AreEqual(0, actual.Location);
            Assert.AreNotEqual(0, actual.GetHashCode());
            Assert.AreNotEqual(1, actual.GetHashCode());
        }
        public void Equality_Default()
        {
            var a = new RelativeEditLocation();
            var b = new RelativeEditLocation();

            Assert.AreEqual(a, b);
            Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
        }
        public void Equality_DifferentLocation()
        {
            var a = new RelativeEditLocation
            {
                Location = 1
            };
            var b = new RelativeEditLocation();

            Assert.AreNotEqual(a, b);
            Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode());
        }
        public void Equality_ReallyTheSame()
        {
            var a = new RelativeEditLocation
            {
                Location = 1,
                Size     = 2
            };
            var b = new RelativeEditLocation
            {
                Location = 1,
                Size     = 2
            };

            Assert.AreEqual(a, b);
            Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
        }