public void Clone_State_ReturnsAnotherInstance() { var a = new SubstitutionAction { ReplacedGlyphCount = 2, ReplacementGlyphIds = new ushort[] { 1, 2, 3 } }; var b = a.Clone(); Assert.AreNotSame(a, b); }
public void Clone_State_ReturnsClone() { var a = new SubstitutionAction { ReplacedGlyphCount = 2, SkippedGlyphCount = 2, ReplacementGlyphIds = new ushort[] { 1, 2, 3 } }; var b = a.Clone(); var comparer = new TransitionActionEqualityComparer(); Assert.IsTrue(comparer.Equals(a, b)); }