public void IndexOfSequence()
        {
            var bytes    = Encoding.ASCII.GetBytes("This is a message to find a part of.");
            var seqFound = Encoding.ASCII.GetBytes("apple");

            for (int i = 0; i < bytes.Length; i++)
            {
                var newBytes = bytes.ToList();
                newBytes.InsertRange(i, seqFound);
                Assert.Equal(i, BreakpointServer.IndexOfSequence(newBytes.ToArray(), seqFound));
            }
        }
 public BreakpointServerTests()
 {
     _pipeMock = new Mock <INamedPipeServer>();
     _server   = new BreakpointServer(_pipeMock.Object);
     _cts      = new CancellationTokenSource();
 }