Beispiel #1
0
        public void TestEmptyFile()
        {
            var tmp = Path.GetTempFileName();

            using (var myQueue = new AutoFileQueue(new StreamReader(tmp)))
            {
                Assert.IsFalse(myQueue.Any());
            }
        }
Beispiel #2
0
        public void TestInitialize()
        {
            _tempFile = Path.GetTempFileName();
            using (var sw = new StreamWriter(_tempFile))
            {
                for (int i = 0; i < MaxTestLines; i++)
                {
                    sw.WriteLine(Guid.NewGuid().ToString());
                }
            }

            _queue = new AutoFileQueue(new StreamReader(_tempFile), MaxTestLines / 8);
        }