Skip() public method

public Skip ( int Skip = 1 ) : void
Skip int
return void
Beispiel #1
0
		public void TestMatchEmpty()
		{
			var RleMatcher = new RleMatcher(new byte[] { });
			Assert.AreEqual(0, RleMatcher.Length);
			RleMatcher.Skip();
			Assert.AreEqual(0, RleMatcher.Length);
		}
Beispiel #2
0
		public void TestMatch3()
		{
			var RleMatcher = new RleMatcher(new byte[] { 1, 1, 1 });
			Assert.AreEqual(1, RleMatcher.Byte);
			Assert.AreEqual(3, RleMatcher.Length);
			RleMatcher.Skip();
			Assert.AreEqual(1, RleMatcher.Byte);
			Assert.AreEqual(2, RleMatcher.Length);
			RleMatcher.Skip();
			Assert.AreEqual(1, RleMatcher.Byte);
			Assert.AreEqual(1, RleMatcher.Length);
			RleMatcher.Skip();
			Assert.AreEqual(1, RleMatcher.Byte);
			Assert.AreEqual(0, RleMatcher.Length);
			RleMatcher.Skip();
			Assert.AreEqual(1, RleMatcher.Byte);
			Assert.AreEqual(0, RleMatcher.Length);
		}