開発に使用するリポジトリ
Revisión | f4fae0d4ceacd2aa59e54ccfdf6edea6a28db595 (tree) |
---|---|
Tiempo | 2012-12-13 16:23:24 |
Autor | the40san <oss.ma40@gmai...> |
Commiter | the40san |
テストケース追加(漏れあり)
@@ -52,8 +52,8 @@ namespace OpenTween | ||
52 | 52 | } |
53 | 53 | |
54 | 54 | [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) | |
57 | 57 | { |
58 | 58 | ApiInformation apiinfo = new ApiInformation(); |
59 | 59 | apiinfo.MaxCount = value; |
@@ -66,7 +66,7 @@ namespace OpenTween | ||
66 | 66 | [TestCase(100, Result = 100)] |
67 | 67 | [TestCase(int.MaxValue, Result = int.MaxValue)] |
68 | 68 | [TestCase(int.MinValue, Result = int.MinValue)] |
69 | - public int RemainCountTest(int value) | |
69 | + public int Test_RemainCount(int value) | |
70 | 70 | { |
71 | 71 | ApiInformation apiinfo = new ApiInformation(); |
72 | 72 | apiinfo.RemainCount = value; |
@@ -82,7 +82,7 @@ namespace OpenTween | ||
82 | 82 | [TestCase(100, Result = 100)] |
83 | 83 | [TestCase(int.MaxValue, Result = int.MaxValue)] |
84 | 84 | [TestCase(int.MinValue, Result = int.MinValue)] |
85 | - public int MediaMaxCountTest(int value) | |
85 | + public int Test_MediaMaxCount(int value) | |
86 | 86 | { |
87 | 87 | ApiInformation apiinfo = new ApiInformation(); |
88 | 88 | apiinfo.MediaMaxCount = value; |
@@ -94,7 +94,7 @@ namespace OpenTween | ||
94 | 94 | [TestCase(100, Result = 100)] |
95 | 95 | [TestCase(int.MaxValue, Result = int.MaxValue)] |
96 | 96 | [TestCase(int.MinValue, Result = int.MinValue)] |
97 | - public int ResetTimeInSecondsTest(int value) | |
97 | + public int Test_ResetTimeInSeconds(int value) | |
98 | 98 | { |
99 | 99 | ApiInformation apiinfo = new ApiInformation(); |
100 | 100 | apiinfo.ResetTimeInSeconds = value; |
@@ -106,7 +106,7 @@ namespace OpenTween | ||
106 | 106 | [TestCase(100, Result = 100)] |
107 | 107 | [TestCase(int.MaxValue, Result = int.MaxValue)] |
108 | 108 | [TestCase(int.MinValue, Result = int.MinValue)] |
109 | - public int UsingCountTest(int value) | |
109 | + public int Test_UsingCount(int value) | |
110 | 110 | { |
111 | 111 | ApiInformation apiinfo = new ApiInformation(); |
112 | 112 | apiinfo.UsingCount = value; |
@@ -116,7 +116,7 @@ namespace OpenTween | ||
116 | 116 | //↓以下DateTime系 |
117 | 117 | |
118 | 118 | [Test] |
119 | - public void ConvertResetTimeInSecondsToResetTimeTest() | |
119 | + public void Test_ConvertResetTimeInSecondsToResetTime() | |
120 | 120 | { |
121 | 121 | ApiInformation apiinfo = new ApiInformation(); |
122 | 122 | DateTime d = apiinfo.ConvertResetTimeInSecondsToResetTime(-1); |
@@ -124,7 +124,7 @@ namespace OpenTween | ||
124 | 124 | } |
125 | 125 | |
126 | 126 | [Test] |
127 | - public void MediaResetTimeTest() | |
127 | + public void Test_MediaResetTime() | |
128 | 128 | { |
129 | 129 | ApiInformation apiinfo = new ApiInformation(); |
130 | 130 | DateTime d = new DateTime(1970, 1, 1, 0, 0, 0); |
@@ -27,6 +27,10 @@ using NUnit.Framework; | ||
27 | 27 | |
28 | 28 | namespace OpenTween.Tests |
29 | 29 | { |
30 | + /// <summary> | |
31 | + /// Bingクラスのテストクラス | |
32 | + /// Translate(string _from, string _to, string _text, out string buf)のテスト未実装です | |
33 | + /// </summary> | |
30 | 34 | [TestFixture] |
31 | 35 | class BingTest |
32 | 36 | { |
@@ -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 | +} |
@@ -52,6 +52,7 @@ | ||
52 | 52 | <ItemGroup> |
53 | 53 | <Compile Include="ApiInformationTest.cs" /> |
54 | 54 | <Compile Include="BingTest.cs" /> |
55 | + <Compile Include="FoursquareTest.cs" /> | |
55 | 56 | <Compile Include="MyCommonTest.cs" /> |
56 | 57 | <Compile Include="Properties\AssemblyInfo.cs" /> |
57 | 58 | <Compile Include="TabsDialogTest.cs" /> |