dev
Revisão | 504aee973afb1a3bf305949ac65de0a2c72777e9 (tree) |
---|---|
Hora | 2013-05-10 06:55:40 |
Autor | Kimura Youichi <kim.upsilon@bucy...> |
Commiter | Kimura Youichi |
FiltersClassTest のテストコードの誤りを修正
@@ -71,25 +71,25 @@ namespace OpenTween | ||
71 | 71 | var filter = new FiltersClass { UseRegex = true }; |
72 | 72 | PostClass post; |
73 | 73 | |
74 | - filter.NameFilter = "(hoge)+"; | |
74 | + filter.NameFilter = "hoge(hoge)+"; | |
75 | 75 | post = new PostClass { ScreenName = "hogehoge", Text = "test" }; |
76 | 76 | Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.CopyAndMark)); |
77 | 77 | |
78 | - filter.NameFilter = "(hoge)+"; | |
78 | + filter.NameFilter = "hoge(hoge)+"; | |
79 | 79 | post = new PostClass { ScreenName = "hoge", Text = "test" }; |
80 | 80 | Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.None)); |
81 | 81 | |
82 | 82 | // NameFilter は RetweetedBy にもマッチする |
83 | - filter.NameFilter = "(hoge)+"; | |
83 | + filter.NameFilter = "hoge(hoge)+"; | |
84 | 84 | post = new PostClass { ScreenName = "foo", Text = "test", RetweetedBy = "hogehoge" }; |
85 | 85 | Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.CopyAndMark)); |
86 | 86 | |
87 | - filter.NameFilter = "(hoge)+"; | |
87 | + filter.NameFilter = "hoge(hoge)+"; | |
88 | 88 | post = new PostClass { ScreenName = "foo", Text = "test", RetweetedBy = "hoge2" }; |
89 | 89 | Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.None)); |
90 | 90 | |
91 | 91 | // 大小文字を区別しないオプション |
92 | - filter.NameFilter = "(hoge)+"; | |
92 | + filter.NameFilter = "hoge(hoge)+"; | |
93 | 93 | filter.CaseSensitive = false; |
94 | 94 | post = new PostClass { ScreenName = "HogeHogeHoge", Text = "test" }; |
95 | 95 | Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.CopyAndMark)); |