[smuxi/experiments/sqlite: 21/27] [Engine-Test] Added more test messages to MessageBufferTestsBase
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/sqlite: 21/27] [Engine-Test] Added more test messages to MessageBufferTestsBase
- Date: Sun, 23 Feb 2014 17:08:08 +0000 (UTC)
commit a73b1e32d2338cdc25cf3ac0b1cc48a894176624
Author: Mirco Bauer <meebey meebey net>
Date: Wed Mar 14 20:37:39 2012 +0100
[Engine-Test] Added more test messages to MessageBufferTestsBase
src/Engine-Tests/MessageBufferTestsBase.cs | 36 ++++++++++++++++++++++++++-
1 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/src/Engine-Tests/MessageBufferTestsBase.cs b/src/Engine-Tests/MessageBufferTestsBase.cs
index 3b4a02e..1909904 100644
--- a/src/Engine-Tests/MessageBufferTestsBase.cs
+++ b/src/Engine-Tests/MessageBufferTestsBase.cs
@@ -57,6 +57,38 @@ namespace Smuxi.Engine
builder.AppendErrorText("msg3");
TestMessages.Add(builder.ToMessage());
+ builder = new MessageBuilder();
+ builder.AppendText("msg4");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg5");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg6");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg7");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg8");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg9");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg10");
+ TestMessages.Add(builder.ToMessage());
+
+ builder = new MessageBuilder();
+ builder.AppendText("msg11");
+ TestMessages.Add(builder.ToMessage());
+
foreach (var msg in TestMessages) {
Buffer.Add(msg);
}
@@ -165,9 +197,9 @@ namespace Smuxi.Engine
Assert.AreEqual(1, range.Count);
Assert.AreEqual(TestMessages[2], range[0]);
- range = Buffer.GetRange(2, 10);
+ range = Buffer.GetRange(10, 10);
Assert.AreEqual(1, range.Count);
- Assert.AreEqual(TestMessages[2], range[0]);
+ Assert.AreEqual(TestMessages[10], range[0]);
}
[Test]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]