• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

開発に使用するリポジトリ


Commit MetaInfo

Revisiónf4fae0d4ceacd2aa59e54ccfdf6edea6a28db595 (tree)
Tiempo2012-12-13 16:23:24
Autorthe40san <oss.ma40@gmai...>
Commiterthe40san

Log Message

テストケース追加(漏れあり)

Cambiar Resumen

Diferencia incremental

--- a/OpenTween.Tests/ApiInformationTest.cs
+++ b/OpenTween.Tests/ApiInformationTest.cs
@@ -52,8 +52,8 @@ namespace OpenTween
5252 }
5353
5454 [Test]
55- [Combinatorial]
56- public void MaxCountTest([Values(100,0,-100)]int value)
55+ [Combinatorial]
56+ public void Test_MaxCount([Values(100, 0, -100)]int value)
5757 {
5858 ApiInformation apiinfo = new ApiInformation();
5959 apiinfo.MaxCount = value;
@@ -66,7 +66,7 @@ namespace OpenTween
6666 [TestCase(100, Result = 100)]
6767 [TestCase(int.MaxValue, Result = int.MaxValue)]
6868 [TestCase(int.MinValue, Result = int.MinValue)]
69- public int RemainCountTest(int value)
69+ public int Test_RemainCount(int value)
7070 {
7171 ApiInformation apiinfo = new ApiInformation();
7272 apiinfo.RemainCount = value;
@@ -82,7 +82,7 @@ namespace OpenTween
8282 [TestCase(100, Result = 100)]
8383 [TestCase(int.MaxValue, Result = int.MaxValue)]
8484 [TestCase(int.MinValue, Result = int.MinValue)]
85- public int MediaMaxCountTest(int value)
85+ public int Test_MediaMaxCount(int value)
8686 {
8787 ApiInformation apiinfo = new ApiInformation();
8888 apiinfo.MediaMaxCount = value;
@@ -94,7 +94,7 @@ namespace OpenTween
9494 [TestCase(100, Result = 100)]
9595 [TestCase(int.MaxValue, Result = int.MaxValue)]
9696 [TestCase(int.MinValue, Result = int.MinValue)]
97- public int ResetTimeInSecondsTest(int value)
97+ public int Test_ResetTimeInSeconds(int value)
9898 {
9999 ApiInformation apiinfo = new ApiInformation();
100100 apiinfo.ResetTimeInSeconds = value;
@@ -106,7 +106,7 @@ namespace OpenTween
106106 [TestCase(100, Result = 100)]
107107 [TestCase(int.MaxValue, Result = int.MaxValue)]
108108 [TestCase(int.MinValue, Result = int.MinValue)]
109- public int UsingCountTest(int value)
109+ public int Test_UsingCount(int value)
110110 {
111111 ApiInformation apiinfo = new ApiInformation();
112112 apiinfo.UsingCount = value;
@@ -116,7 +116,7 @@ namespace OpenTween
116116 //↓以下DateTime系
117117
118118 [Test]
119- public void ConvertResetTimeInSecondsToResetTimeTest()
119+ public void Test_ConvertResetTimeInSecondsToResetTime()
120120 {
121121 ApiInformation apiinfo = new ApiInformation();
122122 DateTime d = apiinfo.ConvertResetTimeInSecondsToResetTime(-1);
@@ -124,7 +124,7 @@ namespace OpenTween
124124 }
125125
126126 [Test]
127- public void MediaResetTimeTest()
127+ public void Test_MediaResetTime()
128128 {
129129 ApiInformation apiinfo = new ApiInformation();
130130 DateTime d = new DateTime(1970, 1, 1, 0, 0, 0);
--- a/OpenTween.Tests/BingTest.cs
+++ b/OpenTween.Tests/BingTest.cs
@@ -27,6 +27,10 @@ using NUnit.Framework;
2727
2828 namespace OpenTween.Tests
2929 {
30+ /// <summary>
31+ /// Bingクラスのテストクラス
32+ /// Translate(string _from, string _to, string _text, out string buf)のテスト未実装です
33+ /// </summary>
3034 [TestFixture]
3135 class BingTest
3236 {
--- /dev/null
+++ b/OpenTween.Tests/FoursquareTest.cs
@@ -0,0 +1,55 @@
1+// OpenTween - Client of Twitter
2+// Copyright (c) 2012 the40san <http://sourceforge.jp/users/the40san/>
3+// All rights reserved.
4+//
5+// This file is part of OpenTween.
6+//
7+// This program is free software; you can redistribute it and/or modify it
8+// under the terms of the GNU General public License as published by the Free
9+// Software Foundation; either version 3 of the License, or (at your option)
10+// any later version.
11+//
12+// This program is distributed in the hope that it will be useful, but
13+// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14+// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public License
15+// for more details.
16+//
17+// You should have received a copy of the GNU General public License along
18+// with this program. If not, see <http://www.gnu.org/licenses/>, or write to
19+// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
20+// Boston, MA 02110-1301, USA.
21+
22+using System;
23+using System.Collections.Generic;
24+using System.Linq;
25+using System.Text;
26+using NUnit.Framework;
27+using OpenTween;
28+
29+namespace OpenTween.Tests
30+{
31+ /// <summary>
32+ /// OpenTween.Foursquareクラステスト用
33+ /// </summary>
34+ [TestFixture]
35+ class FoursquareTest
36+ {
37+
38+ [Test]
39+ public void Test_GetInstance()
40+ {
41+ Assert.That(Foursquare.GetInstance, Is.TypeOf(typeof(Foursquare)));
42+ Assert.That(Foursquare.GetInstance, Is.Not.Null);
43+ }
44+
45+ [TestCase("https://ja.foursquare.com/v/starbucks-coffee-jr%E6%9D%B1%E6%B5%B7-%E5%93%81%E5%B7%9D%E9%A7%85%E5%BA%97/4b5fd527f964a52036ce29e3", Result = "")]
46+ [TestCase("https://ja.foursquare.com/keihotmanp/checkin/501be52be4b01e9e719e459e?s=IeKLsUAddfpBsXL7PkEsYZ3xzSg", Result = "")]
47+ public string Test_GetMapsUri(string url)
48+ {
49+ AppendSettingDialog.Instance.IsPreviewFoursquare = true;
50+ string refText ="";
51+ return Foursquare.GetInstance.GetMapsUri(url, ref refText);
52+ }
53+
54+ }
55+}
--- a/OpenTween.Tests/OpenTween.Tests.csproj
+++ b/OpenTween.Tests/OpenTween.Tests.csproj
@@ -52,6 +52,7 @@
5252 <ItemGroup>
5353 <Compile Include="ApiInformationTest.cs" />
5454 <Compile Include="BingTest.cs" />
55+ <Compile Include="FoursquareTest.cs" />
5556 <Compile Include="MyCommonTest.cs" />
5657 <Compile Include="Properties\AssemblyInfo.cs" />
5758 <Compile Include="TabsDialogTest.cs" />