public void IsGlyphIdMatching_NonmachingGlyphId_ReturnsTrue()
        {
            var transition = new SimpleTransition {
                GlyphId = 1
            };

            var result = transition.IsGlyphIdMatching(2);

            Assert.IsFalse(result);
        }
        public void Clone_State_ReturnsAnotherInstance()
        {
            var a = new SimpleTransition
            {
                GlyphId     = 1,
                HeadShift   = 1,
                LookupFlags = LookupFlags.IgnoreBaseGlyphs,
                Action      = new SubstitutionAction
                {
                    ReplacedGlyphCount = 2
                }
            };

            var b = a.Clone();

            Assert.AreNotSame(a, b);
        }
        public void Clone_State_ReturnsClone()
        {
            var a = new SimpleTransition
            {
                GlyphId     = 1,
                HeadShift   = 1,
                LookupFlags = LookupFlags.IgnoreBaseGlyphs,
                Action      = new SubstitutionAction
                {
                    ReplacedGlyphCount = 2
                }
            };

            var b = a.Clone();

            var comparer = new TransitionNonrecursiveEqualityComparer();

            Assert.IsTrue(comparer.Equals(a, b));
        }
        public void IsFallback_Always_ReturnsFalse()
        {
            var transition = new SimpleTransition();

            Assert.IsFalse(transition.IsFallback);
        }