Skip to content

Commit 40ef9ee

Browse files
author
digitallyborn
committed
Re-included entities in the timelines.
Renamed the nunit categories. Added Example Applications to the release package generation script.
1 parent 930e931 commit 40ef9ee

14 files changed

+56
-36
lines changed

PackageReleases.bat

+9-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ svn export --force . "Release\Twitterizer%twitterizerver%-source"
2424
REM Zip up the source code
2525
PUSHD "Release\Twitterizer%twitterizerver%-source"
2626
"%ProgramFiles%\7-Zip\7z.exe" a -r "..\Twitterizer%twitterizerver%-source.zip" *.*
27-
popd
27+
POPD
2828

2929
REM Cleanup
30-
RD /S /Q "Release\Twitterizer%twitterizerver%-source"
30+
RD /S /Q "Release\Twitterizer%twitterizerver%-source"
31+
32+
REM Prepare example application package
33+
IF EXIST "Release\Twitterizer%twitterizerver%-examples" RD /S /Q "Release\Twitterizer%twitterizerver%-examples"
34+
svn export "ExampleApplications" "Release\Twitterizer%twitterizerver%-examples"
35+
PUSHD "Release\Twitterizer%twitterizerver%-examples"
36+
"%ProgramFiles%\7-Zip\7z.exe" a -r "..\Twitterizer%twitterizerver%-examples.zip" *.*
37+
POPD

Twitterizer2.Data/Twitterizer2.Data.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4646
<DebugType>pdbonly</DebugType>
4747
<Optimize>true</Optimize>
48-
<OutputPath>..\Release\Twitterizer2-WithAddons\</OutputPath>
48+
<OutputPath>bin\Release\</OutputPath>
4949
<DefineConstants>TRACE</DefineConstants>
5050
<ErrorReport>prompt</ErrorReport>
5151
<WarningLevel>4</WarningLevel>

Twitterizer2.Streaming/Twitterizer2.Streaming.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4848
<DebugType>pdbonly</DebugType>
4949
<Optimize>true</Optimize>
50-
<OutputPath>..\Release\Twitterizer2-WithAddons\</OutputPath>
50+
<OutputPath>bin\Release\</OutputPath>
5151
<DefineConstants>TRACE</DefineConstants>
5252
<ErrorReport>prompt</ErrorReport>
5353
<WarningLevel>4</WarningLevel>

Twitterizer2.TestCases/CoreTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public class CoreTests
1313
{
1414
[Test]
15-
[Category("Read-Only")]
15+
[Category("ReadOnly")]
1616
public static void Serialization()
1717
{
1818
Assembly twitterizerAssembly = Assembly.GetAssembly(typeof(TwitterUser));
@@ -67,7 +67,7 @@ public static void Serialization()
6767
}
6868

6969
[Test]
70-
[Category("Read-Only")]
70+
[Category("ReadOnly")]
7171
public static void SSL()
7272
{
7373
TwitterResponse<TwitterUser> sslUser = TwitterUser.Show("twitterapi", new OptionalProperties() { UseSSL = true });

Twitterizer2.TestCases/PagingTests.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class PagingTests
88
{
99
[Test]
10-
[Category("Read-Only")]
10+
[Category("ReadOnly")]
1111
[Category("REST")]
1212
[Category("Paging")]
1313
public static void Mentions()
@@ -32,7 +32,7 @@ public static void Mentions()
3232
}
3333

3434
[Test]
35-
[Category("Read-Only")]
35+
[Category("ReadOnly")]
3636
[Category("REST")]
3737
[Category("Paging")]
3838
public static void UserTimeline()
@@ -57,7 +57,7 @@ public static void UserTimeline()
5757
}
5858

5959
[Test]
60-
[Category("Read-Only")]
60+
[Category("ReadOnly")]
6161
[Category("REST")]
6262
[Category("Paging")]
6363
public static void Friends()
@@ -82,7 +82,7 @@ public static void Friends()
8282
}
8383

8484
[Test]
85-
[Category("Read-Only")]
85+
[Category("ReadOnly")]
8686
[Category("REST")]
8787
[Category("Paging")]
8888
public static void Home()
@@ -107,7 +107,7 @@ public static void Home()
107107
}
108108

109109
[Test]
110-
[Category("Read-Only")]
110+
[Category("ReadOnly")]
111111
[Category("REST")]
112112
[Category("Paging")]
113113
public static void Followers()
@@ -132,7 +132,7 @@ public static void Followers()
132132
}
133133

134134
[Test]
135-
[Category("Read-Only")]
135+
[Category("ReadOnly")]
136136
[Category("REST")]
137137
[Category("Paging")]
138138
public static void FollowersIds()

Twitterizer2.TestCases/TwitterGeoTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class TwitterGeoTests
88
{
99
[Test]
10-
[Category("Read-Only")]
10+
[Category("ReadOnly")]
1111
[Category("REST")]
1212
public static void LookupPlaces()
1313
{

Twitterizer2.TestCases/TwitterListTests.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class TwitterListTests
1010
private const string listName = "meetup-20100301";
1111

1212
[Test]
13-
[Category("Read-Only")]
13+
[Category("ReadOnly")]
1414
[Category("REST")]
1515
public void GetList()
1616
{
@@ -20,7 +20,7 @@ public void GetList()
2020
}
2121

2222
[Test]
23-
[Category("Read-Only")]
23+
[Category("ReadOnly")]
2424
[Category("REST")]
2525
public void GetStatuses()
2626
{
@@ -32,7 +32,7 @@ public void GetStatuses()
3232
}
3333

3434
[Test]
35-
[Category("Read-Only")]
35+
[Category("ReadOnly")]
3636
[Category("REST")]
3737
public void GetMembers()
3838
{
@@ -59,7 +59,7 @@ public void GetMembers()
5959
}
6060

6161
[Test]
62-
[Category("Read-Only")]
62+
[Category("ReadOnly")]
6363
[Category("REST")]
6464
public static void GetSubscriptions()
6565
{
@@ -69,7 +69,7 @@ public static void GetSubscriptions()
6969
}
7070

7171
[Test]
72-
[Category("Read-Only")]
72+
[Category("ReadOnly")]
7373
[Category("REST")]
7474
public static void GetMemberships()
7575
{

Twitterizer2.TestCases/TwitterSearchTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class TwitterSearchTests
88
{
99
[Test]
10-
[Category("Read-Only")]
10+
[Category("ReadOnly")]
1111
[Category("Search")]
1212
public static void Search()
1313
{
@@ -29,7 +29,7 @@ public static void Search()
2929
}
3030

3131
[Test]
32-
[Category("Read-Only")]
32+
[Category("ReadOnly")]
3333
[Category("Search")]
3434
public static void SearchLocal()
3535
{

Twitterizer2.TestCases/TwitterStatusTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Twitterizer2.TestCases
1212
[TestFixture]
1313
public static class TwitterStatusTests
1414
{
15-
[Category("Read-Only")]
15+
[Category("ReadOnly")]
1616
[Category("REST")]
1717
[Test]
1818
public static void Show()
@@ -25,7 +25,7 @@ public static void Show()
2525
Assert.IsNotNullOrEmpty(status.Text);
2626
}
2727

28-
[Category("Read-Only")]
28+
[Category("ReadOnly")]
2929
[Category("REST")]
3030
[Test]
3131
public static void ShowMissing()

Twitterizer2.TestCases/TwitterTimelineTests.cs

+19-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Twitterizer2.TestCases
88
[TestFixture]
99
public static class TwitterTimelineTests
1010
{
11-
[Category("Read-Only")]
11+
[Category("ReadOnly")]
1212
[Category("REST")]
1313
[Test]
1414
public static void PublicTimeline()
@@ -20,7 +20,7 @@ public static void PublicTimeline()
2020
Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items.");
2121
}
2222

23-
[Category("Read-Only")]
23+
[Category("ReadOnly")]
2424
[Category("REST")]
2525
[Test]
2626
public static void UserTimeline()
@@ -49,7 +49,7 @@ public static void UserTimeline()
4949
PerformCommonTimelineTests(timelineResponse);
5050
}
5151

52-
[Category("Read-Only")]
52+
[Category("ReadOnly")]
5353
[Category("REST")]
5454
[Test]
5555
public static void FriendTimeline()
@@ -60,7 +60,18 @@ public static void FriendTimeline()
6060
PerformCommonTimelineTests(timelineResponse);
6161
}
6262

63-
[Category("Read-Only")]
63+
[Category("ReadOnly")]
64+
[Category("REST")]
65+
[Test]
66+
public static void HomeTimeline()
67+
{
68+
OAuthTokens tokens = Configuration.GetTokens();
69+
70+
TwitterResponse<TwitterStatusCollection> timelineResponse = TwitterTimeline.HomeTimeline(tokens);
71+
PerformCommonTimelineTests(timelineResponse);
72+
}
73+
74+
[Category("ReadOnly")]
6475
[Category("REST")]
6576
[Test]
6677
public static void RetweetsOfMe()
@@ -71,7 +82,7 @@ public static void RetweetsOfMe()
7182
PerformCommonTimelineTests(timelineResponse);
7283
}
7384

74-
[Category("Read-Only")]
85+
[Category("ReadOnly")]
7586
[Category("REST")]
7687
[Test]
7788
public static void RetweetedByMe()
@@ -82,7 +93,7 @@ public static void RetweetedByMe()
8293
PerformCommonTimelineTests(timelineResponse);
8394
}
8495

85-
[Category("Read-Only")]
96+
[Category("ReadOnly")]
8697
[Category("REST")]
8798
[Test]
8899
public static void RetweetedToMe()
@@ -94,7 +105,7 @@ public static void RetweetedToMe()
94105
PerformCommonTimelineTests(timelineResponse);
95106
}
96107

97-
[Category("Read-Only")]
108+
[Category("ReadOnly")]
98109
[Category("REST")]
99110
[Test]
100111
public static void Mentions()
@@ -105,7 +116,7 @@ public static void Mentions()
105116
PerformCommonTimelineTests(timelineResponse);
106117
}
107118

108-
[Category("Read-Only")]
119+
[Category("ReadOnly")]
109120
[Category("REST")]
110121
[Test]
111122
public static void SinceID()

Twitterizer2.TestCases/TwitterTrendTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[TestFixture]
77
public static class TwitterTrendTests
88
{
9-
[Category("Read-Only")]
9+
[Category("ReadOnly")]
1010
[Category("Search")]
1111
[Test]
1212
public static void CurrentTrends()

Twitterizer2.TestCases/TwitterUserTests.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Twitterizer2.TestCases
99
[TestFixture]
1010
public class TwitterUserTests
1111
{
12-
[Category("Read-Only")]
12+
[Category("ReadOnly")]
1313
[Category("REST")]
1414
[Test]
1515
public static void Show()
@@ -24,7 +24,7 @@ public static void Show()
2424
Assert.That(!string.IsNullOrEmpty(user.Status.Text));
2525
}
2626

27-
[Category("Read-Only")]
27+
[Category("ReadOnly")]
2828
[Category("REST")]
2929
[Test]
3030
public static void Search()
@@ -50,7 +50,7 @@ public static void UploadProfileImage()
5050
Assert.IsNotNull(updatedUser);
5151
}
5252

53-
[Category("Read-Only")]
53+
[Category("ReadOnly")]
5454
[Category("REST")]
5555
[Test]
5656
public static void LookupUsers()
@@ -69,7 +69,7 @@ public static void LookupUsers()
6969
Assert.IsNotNull(result.ResponseObject);
7070
}
7171

72-
[Category("Read-Only")]
72+
[Category("ReadOnly")]
7373
[Category("REST")]
7474
[Test]
7575
public static void LookupUsersById()

Twitterizer2.TestCases/Twitterizer2.TestCases.csproj.user

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2020
<StartAction>Program</StartAction>
21-
<StartProgram>C:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0\nunit.exe</StartProgram>
21+
<StartProgram>C:\Program Files (x86)\NUnit 2.5.8\bin\net-2.0\nunit.exe</StartProgram>
2222
<StartArguments>
2323
</StartArguments>
2424
</PropertyGroup>

Twitterizer2/Methods/Timeline/TimelineOptions.cs

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public TimelineOptions()
9696
internal static void Init<T>(Core.TwitterCommand<T> command, TimelineOptions options)
9797
where T : Core.ITwitterObject
9898
{
99+
command.RequestParameters.Add("include_entities", "true");
100+
99101
if (options == null)
100102
options = new TimelineOptions();
101103

0 commit comments

Comments
 (0)