Permalink
Browse files

Re-included entities in the timelines.

Renamed the nunit categories.
Added Example Applications to the release package generation script.
  • Loading branch information...
1 parent 930e931 commit 40ef9ee81fe66c2a7313cc1be75ce2d5364cece3 digitallyborn committed Nov 21, 2010
View
@@ -24,7 +24,14 @@ svn export --force . "Release\Twitterizer%twitterizerver%-source"
REM Zip up the source code
PUSHD "Release\Twitterizer%twitterizerver%-source"
"%ProgramFiles%\7-Zip\7z.exe" a -r "..\Twitterizer%twitterizerver%-source.zip" *.*
-popd
+POPD
REM Cleanup
-RD /S /Q "Release\Twitterizer%twitterizerver%-source"
+RD /S /Q "Release\Twitterizer%twitterizerver%-source"
+
+REM Prepare example application package
+IF EXIST "Release\Twitterizer%twitterizerver%-examples" RD /S /Q "Release\Twitterizer%twitterizerver%-examples"
+svn export "ExampleApplications" "Release\Twitterizer%twitterizerver%-examples"
+PUSHD "Release\Twitterizer%twitterizerver%-examples"
+"%ProgramFiles%\7-Zip\7z.exe" a -r "..\Twitterizer%twitterizerver%-examples.zip" *.*
+POPD
@@ -45,7 +45,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
- <OutputPath>..\Release\Twitterizer2-WithAddons\</OutputPath>
+ <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@@ -47,7 +47,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
- <OutputPath>..\Release\Twitterizer2-WithAddons\</OutputPath>
+ <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@@ -12,7 +12,7 @@
public class CoreTests
{
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
public static void Serialization()
{
Assembly twitterizerAssembly = Assembly.GetAssembly(typeof(TwitterUser));
@@ -67,7 +67,7 @@ public static void Serialization()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
public static void SSL()
{
TwitterResponse<TwitterUser> sslUser = TwitterUser.Show("twitterapi", new OptionalProperties() { UseSSL = true });
@@ -7,7 +7,7 @@
public class PagingTests
{
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Category("Paging")]
public static void Mentions()
@@ -32,7 +32,7 @@ public static void Mentions()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Category("Paging")]
public static void UserTimeline()
@@ -57,7 +57,7 @@ public static void UserTimeline()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Category("Paging")]
public static void Friends()
@@ -82,7 +82,7 @@ public static void Friends()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Category("Paging")]
public static void Home()
@@ -107,7 +107,7 @@ public static void Home()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Category("Paging")]
public static void Followers()
@@ -132,7 +132,7 @@ public static void Followers()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Category("Paging")]
public static void FollowersIds()
@@ -7,7 +7,7 @@
public class TwitterGeoTests
{
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
public static void LookupPlaces()
{
@@ -10,7 +10,7 @@ public class TwitterListTests
private const string listName = "meetup-20100301";
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
public void GetList()
{
@@ -20,7 +20,7 @@ public void GetList()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
public void GetStatuses()
{
@@ -32,7 +32,7 @@ public void GetStatuses()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
public void GetMembers()
{
@@ -59,7 +59,7 @@ public void GetMembers()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
public static void GetSubscriptions()
{
@@ -69,7 +69,7 @@ public static void GetSubscriptions()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
public static void GetMemberships()
{
@@ -7,7 +7,7 @@
public class TwitterSearchTests
{
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("Search")]
public static void Search()
{
@@ -29,7 +29,7 @@ public static void Search()
}
[Test]
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("Search")]
public static void SearchLocal()
{
@@ -12,7 +12,7 @@ namespace Twitterizer2.TestCases
[TestFixture]
public static class TwitterStatusTests
{
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void Show()
@@ -25,7 +25,7 @@ public static void Show()
Assert.IsNotNullOrEmpty(status.Text);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void ShowMissing()
@@ -8,7 +8,7 @@ namespace Twitterizer2.TestCases
[TestFixture]
public static class TwitterTimelineTests
{
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void PublicTimeline()
@@ -20,7 +20,7 @@ public static void PublicTimeline()
Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items.");
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void UserTimeline()
@@ -49,7 +49,7 @@ public static void UserTimeline()
PerformCommonTimelineTests(timelineResponse);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void FriendTimeline()
@@ -60,7 +60,18 @@ public static void FriendTimeline()
PerformCommonTimelineTests(timelineResponse);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
+ [Category("REST")]
+ [Test]
+ public static void HomeTimeline()
+ {
+ OAuthTokens tokens = Configuration.GetTokens();
+
+ TwitterResponse<TwitterStatusCollection> timelineResponse = TwitterTimeline.HomeTimeline(tokens);
+ PerformCommonTimelineTests(timelineResponse);
+ }
+
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void RetweetsOfMe()
@@ -71,7 +82,7 @@ public static void RetweetsOfMe()
PerformCommonTimelineTests(timelineResponse);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void RetweetedByMe()
@@ -82,7 +93,7 @@ public static void RetweetedByMe()
PerformCommonTimelineTests(timelineResponse);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void RetweetedToMe()
@@ -94,7 +105,7 @@ public static void RetweetedToMe()
PerformCommonTimelineTests(timelineResponse);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void Mentions()
@@ -105,7 +116,7 @@ public static void Mentions()
PerformCommonTimelineTests(timelineResponse);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void SinceID()
@@ -6,7 +6,7 @@
[TestFixture]
public static class TwitterTrendTests
{
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("Search")]
[Test]
public static void CurrentTrends()
@@ -9,7 +9,7 @@ namespace Twitterizer2.TestCases
[TestFixture]
public class TwitterUserTests
{
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void Show()
@@ -24,7 +24,7 @@ public static void Show()
Assert.That(!string.IsNullOrEmpty(user.Status.Text));
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void Search()
@@ -50,7 +50,7 @@ public static void UploadProfileImage()
Assert.IsNotNull(updatedUser);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void LookupUsers()
@@ -69,7 +69,7 @@ public static void LookupUsers()
Assert.IsNotNull(result.ResponseObject);
}
- [Category("Read-Only")]
+ [Category("ReadOnly")]
[Category("REST")]
[Test]
public static void LookupUsersById()
@@ -18,7 +18,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<StartAction>Program</StartAction>
- <StartProgram>C:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0\nunit.exe</StartProgram>
+ <StartProgram>C:\Program Files (x86)\NUnit 2.5.8\bin\net-2.0\nunit.exe</StartProgram>
<StartArguments>
</StartArguments>
</PropertyGroup>
@@ -96,6 +96,8 @@ public TimelineOptions()
internal static void Init<T>(Core.TwitterCommand<T> command, TimelineOptions options)
where T : Core.ITwitterObject
{
+ command.RequestParameters.Add("include_entities", "true");
+
if (options == null)
options = new TimelineOptions();

0 comments on commit 40ef9ee

Please sign in to comment.