public void Equals_UnequalResolvers()
        {
            var headMock = new Mock <IGrandparentSubResolver>();
            var r1       = new DirectLineageResolver(headMock.Object);
            var r2       = new TestRelationshipResolver();

            Assert.IsFalse(r1.Equals(r2));
        }
        public void InPositionRange_InvalidPositionX()
        {
            var headMock = new Mock <IGrandparentSubResolver>();
            var r        = new DirectLineageResolver(headMock.Object);
            int x        = 1,
                y        = 1;

            Assert.IsFalse(r.InPositionRange(x, y));
        }
        public void Equals_EqualResolvers()
        {
            var headMock = new Mock <IGrandparentSubResolver>();

            var r1 = new DirectLineageResolver(headMock.Object);
            var r2 = new DirectLineageResolver(headMock.Object);

            Assert.IsTrue(r1.Equals(r2));
        }
        public void InPositionRange_OutOfRange()
        {
            int x = 1,
                y = -1;

            var headMock = new Mock <IGrandparentSubResolver>();

            var resolver = new DirectLineageResolver(headMock.Object);

            Assert.IsFalse(resolver.InPositionRange(x, y));
        }
        public void InPositionRange_ValidInputWithNegativeYIsInRange()
        {
            int x = 0,
                y = -1;

            var headMock = new Mock <IGrandparentSubResolver>();

            var resolver = new DirectLineageResolver(headMock.Object);

            Assert.IsTrue(resolver.InPositionRange(x, y));
        }
        public void InPositionRange_SourceFamilyMemberIsInRange()
        {
            int x = 0,
                y = 0;

            var headMock = new Mock <IGrandparentSubResolver>();

            var resolver = new DirectLineageResolver(headMock.Object);

            Assert.IsTrue(resolver.InPositionRange(x, y));
        }