[smuxi] Engine-Tests: removed useless SqliteMessageBufferTests.ImplicitFlush() test-case



commit 68caef13ee81d332b5c069d5daeb8ee0bcef520b
Author: Mirco Bauer <meebey meebey net>
Date:   Wed Feb 26 23:50:25 2014 +0100

    Engine-Tests: removed useless SqliteMessageBufferTests.ImplicitFlush() test-case

 src/Engine-Tests/SqliteMessageBufferTests.cs |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/Engine-Tests/SqliteMessageBufferTests.cs b/src/Engine-Tests/SqliteMessageBufferTests.cs
index 9f3926c..b25fd7e 100644
--- a/src/Engine-Tests/SqliteMessageBufferTests.cs
+++ b/src/Engine-Tests/SqliteMessageBufferTests.cs
@@ -57,28 +57,6 @@ namespace Smuxi.Engine
         }
 
         [Test]
-        public void ImplicitFlush()
-        {
-            // generate 32 extra messsages to exceed the buffer size which
-            // forces a flush of the buffer to db4o
-            var bufferCount = Buffer.Count;
-            var msgs = new List<MessageModel>(Buffer);
-            for (int i = 1; i <= 32; i++) {
-                var builder = new MessageBuilder();
-                builder.AppendText("msg{0}", bufferCount + i);
-                var msg = builder.ToMessage();
-                msgs.Add(msg);
-                Buffer.Add(msg);
-            }
-
-            int j = 0;
-            foreach (var msg in Buffer) {
-                Assert.AreEqual(msgs[j++].ToString(), msg.ToString());
-            }
-            Assert.AreEqual(msgs.Count, j);
-        }
-
-        [Test]
         public void ImplicitRemoveAt()
         {
             Buffer.MaxCapacity = 16;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]