開発に使用するリポジトリ
Revisión | 4cf167c04c64923c631d03b99fdabc8fce8c7e1a (tree) |
---|---|
Tiempo | 2012-12-07 16:45:40 |
Autor | the40san <oss.ma40@gmai...> |
Commiter | the40san |
BingTest�lj�
@@ -9,6 +9,7 @@ OpenTween Project: | ||
9 | 9 | Copyright (C) 2011 tigree4th <crerish@gmail.com> |
10 | 10 | Copyright (C) 2012 shogo82148 <shogo82148@gmail.com> |
11 | 11 | Copyright (C) 2012 ANIKITI <brotherwood@users.sourceforge.jp> |
12 | + Copyright (C) 2012 the40san <oss.ma40@gmail.com> | |
12 | 13 | |
13 | 14 | Tween Authors: |
14 | 15 |
@@ -9,6 +9,7 @@ OpenTweenプロジェクト: | ||
9 | 9 | Copyright (C) 2011 tigree4th <crerish@gmail.com> |
10 | 10 | Copyright (C) 2012 shogo82148 <shogo82148@gmail.com> |
11 | 11 | Copyright (C) 2012 ANIKITI <brotherwood@users.sourceforge.jp> |
12 | + Copyright (C) 2012 the40san <oss.ma40@gmail.com> | |
12 | 13 | |
13 | 14 | Tween著作者: |
14 | 15 |
@@ -1,90 +1,137 @@ | ||
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 System.Threading.Tasks; | |
27 | -using NUnit.Framework; | |
28 | - | |
29 | - | |
30 | -namespace OpenTween | |
31 | -{ | |
32 | - [TestFixture] | |
33 | - public class ApiInformationTest | |
34 | - { | |
35 | - [Test] | |
36 | - public void Initialize() | |
37 | - { | |
38 | - ApiInformation apiinfo = new ApiInformation(); | |
39 | - apiinfo.Initialize(); | |
40 | - | |
41 | - Assert.That(apiinfo.HttpHeaders["X-RateLimit-Remaining"], Is.EqualTo(-1)); | |
42 | - Assert.That(apiinfo.HttpHeaders["X-RateLimit-Limit"], Is.EqualTo(-1)); | |
43 | - Assert.That(apiinfo.HttpHeaders["X-RateLimit-Reset"], Is.EqualTo(-1)); | |
44 | - | |
45 | - Assert.That(apiinfo.HttpHeaders["X-Access-Level"], Is.EqualTo("read-write-directmessages")); | |
46 | - | |
47 | - Assert.That(apiinfo.HttpHeaders["X-MediaRateLimit-Remaining"], Is.EqualTo(-1)); | |
48 | - Assert.That(apiinfo.HttpHeaders["X-MediaRateLimit-Limit"], Is.EqualTo(-1)); | |
49 | - Assert.That(apiinfo.HttpHeaders["X-MediaRateLimit-Reset"], Is.EqualTo(-1)); | |
50 | - | |
51 | - | |
52 | - } | |
53 | - | |
54 | - [Test] | |
55 | - [Combinatorial] | |
56 | - public void MaxCountTest([Values(100,0,-100)]int value) | |
57 | - { | |
58 | - ApiInformation apiinfo = new ApiInformation(); | |
59 | - apiinfo.MaxCount = value; | |
60 | - Assert.That(apiinfo.MaxCount, Is.EqualTo(value)); | |
61 | - } | |
62 | - | |
63 | - | |
64 | - [TestCase(-100, Result = -100)] | |
65 | - [TestCase(-100, Result = 0)] | |
66 | - [TestCase(-100, Result = 100)] | |
67 | - [TestCase(int.MaxValue, Result = int.MaxValue)] | |
68 | - [TestCase(int.MinValue, Result = int.MinValue)] | |
69 | - public int RemainCountTest(int value) | |
70 | - { | |
71 | - ApiInformation apiinfo = new ApiInformation(); | |
72 | - apiinfo.RemainCount = value; | |
73 | - return apiinfo.RemainCount; | |
74 | - } | |
75 | - | |
76 | - [Test] | |
77 | - public void ConvertResetTimeInSecondsToResetTimeTest() | |
78 | - { | |
79 | - ApiInformation apiinfo = new ApiInformation(); | |
80 | - DateTime d = apiinfo.ConvertResetTimeInSecondsToResetTime(-1); | |
81 | - Assert.That(d, Is.EqualTo(new DateTime())); | |
82 | - } | |
83 | - | |
84 | - | |
85 | - public void ResetTimeTest() | |
86 | - { | |
87 | - | |
88 | - } | |
89 | - } | |
90 | -} | |
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 System.Threading.Tasks; | |
27 | +using NUnit.Framework; | |
28 | + | |
29 | + | |
30 | +namespace OpenTween | |
31 | +{ | |
32 | + [TestFixture] | |
33 | + public class ApiInformationTest | |
34 | + { | |
35 | + [Test] | |
36 | + public void Initialize() | |
37 | + { | |
38 | + ApiInformation apiinfo = new ApiInformation(); | |
39 | + apiinfo.Initialize(); | |
40 | + | |
41 | + Assert.That(apiinfo.HttpHeaders["X-RateLimit-Remaining"], Is.EqualTo("-1")); | |
42 | + Assert.That(apiinfo.HttpHeaders["X-RateLimit-Limit"], Is.EqualTo("-1")); | |
43 | + Assert.That(apiinfo.HttpHeaders["X-RateLimit-Reset"], Is.EqualTo("-1")); | |
44 | + | |
45 | + Assert.That(apiinfo.HttpHeaders["X-Access-Level"], Is.EqualTo("read-write-directmessages")); | |
46 | + | |
47 | + Assert.That(apiinfo.HttpHeaders["X-MediaRateLimit-Remaining"], Is.EqualTo("-1")); | |
48 | + Assert.That(apiinfo.HttpHeaders["X-MediaRateLimit-Limit"], Is.EqualTo("-1")); | |
49 | + Assert.That(apiinfo.HttpHeaders["X-MediaRateLimit-Reset"], Is.EqualTo("-1")); | |
50 | + | |
51 | + | |
52 | + } | |
53 | + | |
54 | + [Test] | |
55 | + [Combinatorial] | |
56 | + public void MaxCountTest([Values(100,0,-100)]int value) | |
57 | + { | |
58 | + ApiInformation apiinfo = new ApiInformation(); | |
59 | + apiinfo.MaxCount = value; | |
60 | + Assert.That(apiinfo.MaxCount, Is.EqualTo(value)); | |
61 | + } | |
62 | + | |
63 | + | |
64 | + [TestCase(-100, Result = -100)] | |
65 | + [TestCase(0, Result = 0)] | |
66 | + [TestCase(100, Result = 100)] | |
67 | + [TestCase(int.MaxValue, Result = int.MaxValue)] | |
68 | + [TestCase(int.MinValue, Result = int.MinValue)] | |
69 | + public int RemainCountTest(int value) | |
70 | + { | |
71 | + ApiInformation apiinfo = new ApiInformation(); | |
72 | + apiinfo.RemainCount = value; | |
73 | + return apiinfo.RemainCount; | |
74 | + } | |
75 | + | |
76 | + | |
77 | + | |
78 | + | |
79 | + | |
80 | + [TestCase(-100, Result = -100)] | |
81 | + [TestCase(0, Result = 0)] | |
82 | + [TestCase(100, Result = 100)] | |
83 | + [TestCase(int.MaxValue, Result = int.MaxValue)] | |
84 | + [TestCase(int.MinValue, Result = int.MinValue)] | |
85 | + public int MediaMaxCountTest(int value) | |
86 | + { | |
87 | + ApiInformation apiinfo = new ApiInformation(); | |
88 | + apiinfo.MediaMaxCount = value; | |
89 | + return apiinfo.MediaMaxCount; | |
90 | + } | |
91 | + | |
92 | + [TestCase(-100, Result = -100)] | |
93 | + [TestCase(0, Result = 0)] | |
94 | + [TestCase(100, Result = 100)] | |
95 | + [TestCase(int.MaxValue, Result = int.MaxValue)] | |
96 | + [TestCase(int.MinValue, Result = int.MinValue)] | |
97 | + public int ResetTimeInSecondsTest(int value) | |
98 | + { | |
99 | + ApiInformation apiinfo = new ApiInformation(); | |
100 | + apiinfo.ResetTimeInSeconds = value; | |
101 | + return apiinfo.ResetTimeInSeconds; | |
102 | + } | |
103 | + | |
104 | + [TestCase(-100, Result = -100)] | |
105 | + [TestCase(0, Result = 0)] | |
106 | + [TestCase(100, Result = 100)] | |
107 | + [TestCase(int.MaxValue, Result = int.MaxValue)] | |
108 | + [TestCase(int.MinValue, Result = int.MinValue)] | |
109 | + public int UsingCountTest(int value) | |
110 | + { | |
111 | + ApiInformation apiinfo = new ApiInformation(); | |
112 | + apiinfo.UsingCount = value; | |
113 | + return apiinfo.UsingCount; | |
114 | + } | |
115 | + | |
116 | + //↓以下DateTime系 | |
117 | + | |
118 | + [Test] | |
119 | + public void ConvertResetTimeInSecondsToResetTimeTest() | |
120 | + { | |
121 | + ApiInformation apiinfo = new ApiInformation(); | |
122 | + DateTime d = apiinfo.ConvertResetTimeInSecondsToResetTime(-1); | |
123 | + Assert.That(d, Is.EqualTo(new DateTime())); | |
124 | + } | |
125 | + | |
126 | + [Test] | |
127 | + public void MediaResetTimeTest() | |
128 | + { | |
129 | + ApiInformation apiinfo = new ApiInformation(); | |
130 | + DateTime d = new DateTime(1970, 1, 1, 0, 0, 0); | |
131 | + apiinfo.MediaResetTime = d; | |
132 | + Assert.That(apiinfo.MediaResetTime, Is.EqualTo(d)); | |
133 | + } | |
134 | + | |
135 | + | |
136 | + } | |
137 | +} |
@@ -0,0 +1,195 @@ | ||
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.using System; | |
21 | +using System.Collections.Generic; | |
22 | +using System.Linq; | |
23 | +using System.Text; | |
24 | +using System.Reflection; | |
25 | +using NUnit.Framework; | |
26 | + | |
27 | + | |
28 | +namespace OpenTween.Tests | |
29 | +{ | |
30 | + [TestFixture] | |
31 | + class BingTest | |
32 | + { | |
33 | + List<string> LanguageTable; | |
34 | + Bing bing; | |
35 | + | |
36 | + [TestFixtureSetUp] | |
37 | + public void TestInit() | |
38 | + { | |
39 | + bing = new Bing(); | |
40 | + //リフレクション使ってインスタンスから取得するようにしたい | |
41 | + #region 言語テーブル定義 | |
42 | + LanguageTable = new List<string>() { | |
43 | + "af", | |
44 | + "sq", | |
45 | + "ar-sa", | |
46 | + "ar-iq", | |
47 | + "ar-eg", | |
48 | + "ar-ly", | |
49 | + "ar-dz", | |
50 | + "ar-ma", | |
51 | + "ar-tn", | |
52 | + "ar-om", | |
53 | + "ar-ye", | |
54 | + "ar-sy", | |
55 | + "ar-jo", | |
56 | + "ar-lb", | |
57 | + "ar-kw", | |
58 | + "ar-ae", | |
59 | + "ar-bh", | |
60 | + "ar-qa", | |
61 | + "eu", | |
62 | + "bg", | |
63 | + "be", | |
64 | + "ca", | |
65 | + "zh-tw", | |
66 | + "zh-cn", | |
67 | + "zh-hk", | |
68 | + "zh-sg", | |
69 | + "hr", | |
70 | + "cs", | |
71 | + "da", | |
72 | + "nl", | |
73 | + "nl-be", | |
74 | + "en", | |
75 | + "en-us", | |
76 | + "en-gb", | |
77 | + "en-au", | |
78 | + "en-ca", | |
79 | + "en-nz", | |
80 | + "en-ie", | |
81 | + "en-za", | |
82 | + "en-jm", | |
83 | + "en", | |
84 | + "en-bz", | |
85 | + "en-tt", | |
86 | + "et", | |
87 | + "fo", | |
88 | + "fa", | |
89 | + "fi", | |
90 | + "fr", | |
91 | + "fr-be", | |
92 | + "fr-ca", | |
93 | + "fr-ch", | |
94 | + "fr-lu", | |
95 | + "gd", | |
96 | + "ga", | |
97 | + "de", | |
98 | + "de-ch", | |
99 | + "de-at", | |
100 | + "de-lu", | |
101 | + "de-li", | |
102 | + "el", | |
103 | + "he", | |
104 | + "hi", | |
105 | + "hu", | |
106 | + "is", | |
107 | + "id", | |
108 | + "it", | |
109 | + "it-ch", | |
110 | + "ja", | |
111 | + "ko", | |
112 | + "ko", | |
113 | + "lv", | |
114 | + "lt", | |
115 | + "mk", | |
116 | + "ms", | |
117 | + "mt", | |
118 | + "no", | |
119 | + "no", | |
120 | + "pl", | |
121 | + "pt-br", | |
122 | + "pt", | |
123 | + "rm", | |
124 | + "ro", | |
125 | + "ro-mo", | |
126 | + "ru", | |
127 | + "ru-mo", | |
128 | + "sz", | |
129 | + "sr", | |
130 | + "sr", | |
131 | + "sk", | |
132 | + "sl", | |
133 | + "sb", | |
134 | + "es", | |
135 | + "es-mx", | |
136 | + "es-gt", | |
137 | + "es-cr", | |
138 | + "es-pa", | |
139 | + "es-do", | |
140 | + "es-ve", | |
141 | + "es-co", | |
142 | + "es-pe", | |
143 | + "es-ar", | |
144 | + "es-ec", | |
145 | + "es-cl", | |
146 | + "es-uy", | |
147 | + "es-py", | |
148 | + "es-bo", | |
149 | + "es-sv", | |
150 | + "es-hn", | |
151 | + "es-ni", | |
152 | + "es-pr", | |
153 | + "sx", | |
154 | + "sv", | |
155 | + "sv-fi", | |
156 | + "th", | |
157 | + "ts", | |
158 | + "tn", | |
159 | + "tr", | |
160 | + "uk", | |
161 | + "ur", | |
162 | + "ve", | |
163 | + "vi", | |
164 | + "xh", | |
165 | + "ji", | |
166 | + "zu" | |
167 | + }; | |
168 | + #endregion | |
169 | + | |
170 | + } | |
171 | + | |
172 | + //public bool TranslateTest(string _from, string _to, string _text, out string buf) | |
173 | + //{ | |
174 | + | |
175 | + //} | |
176 | + | |
177 | + [Test] | |
178 | + public void GetLanguageEnumFromIndexTest() | |
179 | + { | |
180 | + Assert.That(bing.GetLanguageEnumFromIndex(0), Is.EqualTo(LanguageTable[0])); | |
181 | + Assert.That(bing.GetLanguageEnumFromIndex(1), Is.EqualTo(LanguageTable[1])); | |
182 | + Assert.That(bing.GetLanguageEnumFromIndex(LanguageTable.Count - 1), Is.EqualTo(LanguageTable[LanguageTable.Count - 1])); | |
183 | + } | |
184 | + | |
185 | + [Test] | |
186 | + public void GetIndexFromLanguageEnumTest() | |
187 | + { | |
188 | + Assert.That(bing.GetIndexFromLanguageEnum(LanguageTable[0]), Is.EqualTo(0)); | |
189 | + Assert.That(bing.GetIndexFromLanguageEnum(LanguageTable[1]), Is.EqualTo(1)); | |
190 | + Assert.That(bing.GetIndexFromLanguageEnum(LanguageTable[LanguageTable.Count - 1]), Is.EqualTo(LanguageTable.Count - 1)); | |
191 | + } | |
192 | + | |
193 | + | |
194 | + } | |
195 | +} |
@@ -1,85 +1,87 @@ | ||
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 | - <PropertyGroup> | |
4 | - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
5 | - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
6 | - <ProductVersion>8.0.30703</ProductVersion> | |
7 | - <SchemaVersion>2.0</SchemaVersion> | |
8 | - <ProjectGuid>{18A32642-A8F3-425B-978D-0C6F630EDDE8}</ProjectGuid> | |
9 | - <OutputType>Library</OutputType> | |
10 | - <AppDesignerFolder>Properties</AppDesignerFolder> | |
11 | - <RootNamespace>OpenTween.Tests</RootNamespace> | |
12 | - <AssemblyName>OpenTween.Tests</AssemblyName> | |
13 | - <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | |
14 | - <FileAlignment>512</FileAlignment> | |
15 | - </PropertyGroup> | |
16 | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
17 | - <DebugSymbols>true</DebugSymbols> | |
18 | - <DebugType>full</DebugType> | |
19 | - <Optimize>false</Optimize> | |
20 | - <OutputPath>bin\Debug\</OutputPath> | |
21 | - <DefineConstants>DEBUG;TRACE</DefineConstants> | |
22 | - <ErrorReport>prompt</ErrorReport> | |
23 | - <WarningLevel>4</WarningLevel> | |
24 | - </PropertyGroup> | |
25 | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
26 | - <DebugType>pdbonly</DebugType> | |
27 | - <Optimize>true</Optimize> | |
28 | - <OutputPath>bin\Release\</OutputPath> | |
29 | - <DefineConstants>TRACE</DefineConstants> | |
30 | - <ErrorReport>prompt</ErrorReport> | |
31 | - <WarningLevel>4</WarningLevel> | |
32 | - </PropertyGroup> | |
33 | - <ItemGroup> | |
34 | - <Reference Include="NSubstitute, Version=1.4.3.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL"> | |
35 | - <SpecificVersion>False</SpecificVersion> | |
36 | - <HintPath>dlls\NSubstitute.dll</HintPath> | |
37 | - </Reference> | |
38 | - <Reference Include="nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> | |
39 | - <SpecificVersion>False</SpecificVersion> | |
40 | - <HintPath>dlls\nunit.framework.dll</HintPath> | |
41 | - </Reference> | |
42 | - <Reference Include="System" /> | |
43 | - <Reference Include="System.Core" /> | |
44 | - <Reference Include="System.Runtime.Serialization" /> | |
45 | - <Reference Include="System.Windows.Forms" /> | |
46 | - <Reference Include="System.Xml.Linq" /> | |
47 | - <Reference Include="System.Data.DataSetExtensions" /> | |
48 | - <Reference Include="Microsoft.CSharp" /> | |
49 | - <Reference Include="System.Data" /> | |
50 | - <Reference Include="System.Xml" /> | |
51 | - </ItemGroup> | |
52 | - <ItemGroup> | |
53 | - <Compile Include="MyCommonTest.cs" /> | |
54 | - <Compile Include="Properties\AssemblyInfo.cs" /> | |
55 | - <Compile Include="TabsDialogTest.cs" /> | |
56 | - </ItemGroup> | |
57 | - <ItemGroup> | |
58 | - <ProjectReference Include="..\OpenTween\OpenTween.csproj"> | |
59 | - <Project>{3D8995C7-BDF3-4273-9F9D-DDD902F6A101}</Project> | |
60 | - <Name>OpenTween</Name> | |
61 | - </ProjectReference> | |
62 | - </ItemGroup> | |
63 | - <ItemGroup> | |
64 | - <Content Include="dlls\NSubstitute.dll" /> | |
65 | - <Content Include="dlls\nunit.framework.dll" /> | |
66 | - <Content Include="Resources\re.gif"> | |
67 | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
68 | - </Content> | |
69 | - <Content Include="Resources\re1.gif"> | |
70 | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
71 | - </Content> | |
72 | - <Content Include="Resources\re1.png"> | |
73 | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
74 | - </Content> | |
75 | - </ItemGroup> | |
76 | - <ItemGroup /> | |
77 | - <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |
78 | - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |
79 | - Other similar extension points exist, see Microsoft.Common.targets. | |
80 | - <Target Name="BeforeBuild"> | |
81 | - </Target> | |
82 | - <Target Name="AfterBuild"> | |
83 | - </Target> | |
84 | - --> | |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 | + <PropertyGroup> | |
4 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
5 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
6 | + <ProductVersion>8.0.30703</ProductVersion> | |
7 | + <SchemaVersion>2.0</SchemaVersion> | |
8 | + <ProjectGuid>{18A32642-A8F3-425B-978D-0C6F630EDDE8}</ProjectGuid> | |
9 | + <OutputType>Library</OutputType> | |
10 | + <AppDesignerFolder>Properties</AppDesignerFolder> | |
11 | + <RootNamespace>OpenTween.Tests</RootNamespace> | |
12 | + <AssemblyName>OpenTween.Tests</AssemblyName> | |
13 | + <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | |
14 | + <FileAlignment>512</FileAlignment> | |
15 | + </PropertyGroup> | |
16 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
17 | + <DebugSymbols>true</DebugSymbols> | |
18 | + <DebugType>full</DebugType> | |
19 | + <Optimize>false</Optimize> | |
20 | + <OutputPath>bin\Debug\</OutputPath> | |
21 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | |
22 | + <ErrorReport>prompt</ErrorReport> | |
23 | + <WarningLevel>4</WarningLevel> | |
24 | + </PropertyGroup> | |
25 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
26 | + <DebugType>pdbonly</DebugType> | |
27 | + <Optimize>true</Optimize> | |
28 | + <OutputPath>bin\Release\</OutputPath> | |
29 | + <DefineConstants>TRACE</DefineConstants> | |
30 | + <ErrorReport>prompt</ErrorReport> | |
31 | + <WarningLevel>4</WarningLevel> | |
32 | + </PropertyGroup> | |
33 | + <ItemGroup> | |
34 | + <Reference Include="NSubstitute, Version=1.4.3.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL"> | |
35 | + <SpecificVersion>False</SpecificVersion> | |
36 | + <HintPath>dlls\NSubstitute.dll</HintPath> | |
37 | + </Reference> | |
38 | + <Reference Include="nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> | |
39 | + <SpecificVersion>False</SpecificVersion> | |
40 | + <HintPath>dlls\nunit.framework.dll</HintPath> | |
41 | + </Reference> | |
42 | + <Reference Include="System" /> | |
43 | + <Reference Include="System.Core" /> | |
44 | + <Reference Include="System.Runtime.Serialization" /> | |
45 | + <Reference Include="System.Windows.Forms" /> | |
46 | + <Reference Include="System.Xml.Linq" /> | |
47 | + <Reference Include="System.Data.DataSetExtensions" /> | |
48 | + <Reference Include="Microsoft.CSharp" /> | |
49 | + <Reference Include="System.Data" /> | |
50 | + <Reference Include="System.Xml" /> | |
51 | + </ItemGroup> | |
52 | + <ItemGroup> | |
53 | + <Compile Include="ApiInformationTest.cs" /> | |
54 | + <Compile Include="BingTest.cs" /> | |
55 | + <Compile Include="MyCommonTest.cs" /> | |
56 | + <Compile Include="Properties\AssemblyInfo.cs" /> | |
57 | + <Compile Include="TabsDialogTest.cs" /> | |
58 | + </ItemGroup> | |
59 | + <ItemGroup> | |
60 | + <ProjectReference Include="..\OpenTween\OpenTween.csproj"> | |
61 | + <Project>{3D8995C7-BDF3-4273-9F9D-DDD902F6A101}</Project> | |
62 | + <Name>OpenTween</Name> | |
63 | + </ProjectReference> | |
64 | + </ItemGroup> | |
65 | + <ItemGroup> | |
66 | + <Content Include="dlls\NSubstitute.dll" /> | |
67 | + <Content Include="dlls\nunit.framework.dll" /> | |
68 | + <Content Include="Resources\re.gif"> | |
69 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
70 | + </Content> | |
71 | + <Content Include="Resources\re1.gif"> | |
72 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
73 | + </Content> | |
74 | + <Content Include="Resources\re1.png"> | |
75 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
76 | + </Content> | |
77 | + </ItemGroup> | |
78 | + <ItemGroup /> | |
79 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |
80 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |
81 | + Other similar extension points exist, see Microsoft.Common.targets. | |
82 | + <Target Name="BeforeBuild"> | |
83 | + </Target> | |
84 | + <Target Name="AfterBuild"> | |
85 | + </Target> | |
86 | + --> | |
85 | 87 | </Project> |
\ No newline at end of file |