public void CombinedSequnseTest() { CharacterSequnse sequnce = new CharacterSequnse(new byte[] { 0xFA, 0x00, 0x80, 0x20, 0x10, 0x81, 0x82, 0x10, 0x25 }); sequnce.Backspace(9); AssertSequenceEquals(new byte[] { 0xFA, 0x00, 0x80, 0x20, 0x10, 0x81, 0x82, 0x10 }, sequnce); sequnce.Backspace(4); AssertSequenceEquals(new byte[] { 0xFA, 0x00, 0x10, 0x81, 0x82, 0x10 }, sequnce); }
public void ZeroIndexBackspaceTest() { CharacterSequnse sequnse = new CharacterSequnse(new byte[] { 0x7A }); byte[] result = sequnse.Backspace(0); AssertSequenceEquals(new byte[] { 0x7A }, result); }
public void OneBackspaceKanjiSequnceTest() { CharacterSequnse sequnse = new CharacterSequnse(new byte[] { 0x80, 0x7A, 0x81, 0x35 }); byte[] result = sequnse.Backspace(2); AssertSequenceEquals(new byte[] { 0x81, 0x35 }, result); }
public void FirstIndexASCIIBackspaceTest() { CharacterSequnse sequnse = new CharacterSequnse(new byte[] { 0x7A }); byte[] result = sequnse.Backspace(1); Assert.AreEqual(0, result.Length); }
public void EmptySequnceTest() { CharacterSequnse sequense = new CharacterSequnse(new byte[] { }); sequense.Backspace(10); }