public void when_ack_message()
        {
            var path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
            var queue = new StatelessFileQueueReader(path, "test");
            queue.InitIfNeeded();
            using (var sw = new StreamWriter(Path.Combine(path, "0.dat"), false))
                sw.Write("test message");
            var result = queue.TryGetMessage();

            Assert.IsTrue(File.Exists(Path.Combine(path, "0.dat")));
            queue.AckMessage(result.Message);
            Assert.IsFalse(File.Exists(Path.Combine(path, "0.dat")));
        }
 public void when_ack_null_message()
 {
     var path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
     var queue = new StatelessFileQueueReader(path, "test");
     queue.AckMessage(null);
 }