Beispiel #1
0
 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);
 }
Beispiel #2
0
 public void ZeroIndexBackspaceTest()
 {
     CharacterSequnse sequnse = new CharacterSequnse(new byte[] { 0x7A });
     byte[] result = sequnse.Backspace(0);
     AssertSequenceEquals(new byte[] { 0x7A }, result);
 }
Beispiel #3
0
 public void OneBackspaceKanjiSequnceTest()
 {
     CharacterSequnse sequnse = new CharacterSequnse(new byte[] { 0x80, 0x7A, 0x81, 0x35 });
     byte[] result = sequnse.Backspace(2);
     AssertSequenceEquals(new byte[] { 0x81, 0x35 }, result);
 }
Beispiel #4
0
 public void FirstIndexASCIIBackspaceTest()
 {
     CharacterSequnse sequnse = new CharacterSequnse(new byte[] { 0x7A });
     byte[] result = sequnse.Backspace(1);
     Assert.AreEqual(0, result.Length);
 }
Beispiel #5
0
 public void EmptySequnceTest()
 {
     CharacterSequnse sequense = new CharacterSequnse(new byte[] { });
     sequense.Backspace(10);
 }