Skip to content

Commit

Permalink
Re-included entities in the timelines.
Browse files Browse the repository at this point in the history
Renamed the nunit categories.
Added Example Applications to the release package generation script.
  • Loading branch information
digitallyborn committed Nov 21, 2010
1 parent 930e931 commit 40ef9ee
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 36 deletions.
11 changes: 9 additions & 2 deletions PackageReleases.bat
Expand Up @@ -24,7 +24,14 @@ svn export --force . "Release\Twitterizer%twitterizerver%-source"
REM Zip up the source code REM Zip up the source code
PUSHD "Release\Twitterizer%twitterizerver%-source" PUSHD "Release\Twitterizer%twitterizerver%-source"
"%ProgramFiles%\7-Zip\7z.exe" a -r "..\Twitterizer%twitterizerver%-source.zip" *.* "%ProgramFiles%\7-Zip\7z.exe" a -r "..\Twitterizer%twitterizerver%-source.zip" *.*
popd POPD


REM Cleanup 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
2 changes: 1 addition & 1 deletion Twitterizer2.Data/Twitterizer2.Data.csproj
Expand Up @@ -45,7 +45,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\Release\Twitterizer2-WithAddons\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
Expand Down
2 changes: 1 addition & 1 deletion Twitterizer2.Streaming/Twitterizer2.Streaming.csproj
Expand Up @@ -47,7 +47,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\Release\Twitterizer2-WithAddons\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
Expand Down
4 changes: 2 additions & 2 deletions Twitterizer2.TestCases/CoreTests.cs
Expand Up @@ -12,7 +12,7 @@
public class CoreTests public class CoreTests
{ {
[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
public static void Serialization() public static void Serialization()
{ {
Assembly twitterizerAssembly = Assembly.GetAssembly(typeof(TwitterUser)); Assembly twitterizerAssembly = Assembly.GetAssembly(typeof(TwitterUser));
Expand Down Expand Up @@ -67,7 +67,7 @@ public static void Serialization()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
public static void SSL() public static void SSL()
{ {
TwitterResponse<TwitterUser> sslUser = TwitterUser.Show("twitterapi", new OptionalProperties() { UseSSL = true }); TwitterResponse<TwitterUser> sslUser = TwitterUser.Show("twitterapi", new OptionalProperties() { UseSSL = true });
Expand Down
12 changes: 6 additions & 6 deletions Twitterizer2.TestCases/PagingTests.cs
Expand Up @@ -7,7 +7,7 @@
public class PagingTests public class PagingTests
{ {
[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Category("Paging")] [Category("Paging")]
public static void Mentions() public static void Mentions()
Expand All @@ -32,7 +32,7 @@ public static void Mentions()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Category("Paging")] [Category("Paging")]
public static void UserTimeline() public static void UserTimeline()
Expand All @@ -57,7 +57,7 @@ public static void UserTimeline()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Category("Paging")] [Category("Paging")]
public static void Friends() public static void Friends()
Expand All @@ -82,7 +82,7 @@ public static void Friends()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Category("Paging")] [Category("Paging")]
public static void Home() public static void Home()
Expand All @@ -107,7 +107,7 @@ public static void Home()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Category("Paging")] [Category("Paging")]
public static void Followers() public static void Followers()
Expand All @@ -132,7 +132,7 @@ public static void Followers()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Category("Paging")] [Category("Paging")]
public static void FollowersIds() public static void FollowersIds()
Expand Down
2 changes: 1 addition & 1 deletion Twitterizer2.TestCases/TwitterGeoTests.cs
Expand Up @@ -7,7 +7,7 @@
public class TwitterGeoTests public class TwitterGeoTests
{ {
[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
public static void LookupPlaces() public static void LookupPlaces()
{ {
Expand Down
10 changes: 5 additions & 5 deletions Twitterizer2.TestCases/TwitterListTests.cs
Expand Up @@ -10,7 +10,7 @@ public class TwitterListTests
private const string listName = "meetup-20100301"; private const string listName = "meetup-20100301";


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
public void GetList() public void GetList()
{ {
Expand All @@ -20,7 +20,7 @@ public void GetList()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
public void GetStatuses() public void GetStatuses()
{ {
Expand All @@ -32,7 +32,7 @@ public void GetStatuses()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
public void GetMembers() public void GetMembers()
{ {
Expand All @@ -59,7 +59,7 @@ public void GetMembers()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
public static void GetSubscriptions() public static void GetSubscriptions()
{ {
Expand All @@ -69,7 +69,7 @@ public static void GetSubscriptions()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
public static void GetMemberships() public static void GetMemberships()
{ {
Expand Down
4 changes: 2 additions & 2 deletions Twitterizer2.TestCases/TwitterSearchTests.cs
Expand Up @@ -7,7 +7,7 @@
public class TwitterSearchTests public class TwitterSearchTests
{ {
[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("Search")] [Category("Search")]
public static void Search() public static void Search()
{ {
Expand All @@ -29,7 +29,7 @@ public static void Search()
} }


[Test] [Test]
[Category("Read-Only")] [Category("ReadOnly")]
[Category("Search")] [Category("Search")]
public static void SearchLocal() public static void SearchLocal()
{ {
Expand Down
4 changes: 2 additions & 2 deletions Twitterizer2.TestCases/TwitterStatusTests.cs
Expand Up @@ -12,7 +12,7 @@ namespace Twitterizer2.TestCases
[TestFixture] [TestFixture]
public static class TwitterStatusTests public static class TwitterStatusTests
{ {
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void Show() public static void Show()
Expand All @@ -25,7 +25,7 @@ public static void Show()
Assert.IsNotNullOrEmpty(status.Text); Assert.IsNotNullOrEmpty(status.Text);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void ShowMissing() public static void ShowMissing()
Expand Down
27 changes: 19 additions & 8 deletions Twitterizer2.TestCases/TwitterTimelineTests.cs
Expand Up @@ -8,7 +8,7 @@ namespace Twitterizer2.TestCases
[TestFixture] [TestFixture]
public static class TwitterTimelineTests public static class TwitterTimelineTests
{ {
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void PublicTimeline() public static void PublicTimeline()
Expand All @@ -20,7 +20,7 @@ public static void PublicTimeline()
Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items.");
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void UserTimeline() public static void UserTimeline()
Expand Down Expand Up @@ -49,7 +49,7 @@ public static void UserTimeline()
PerformCommonTimelineTests(timelineResponse); PerformCommonTimelineTests(timelineResponse);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void FriendTimeline() public static void FriendTimeline()
Expand All @@ -60,7 +60,18 @@ public static void FriendTimeline()
PerformCommonTimelineTests(timelineResponse); 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")] [Category("REST")]
[Test] [Test]
public static void RetweetsOfMe() public static void RetweetsOfMe()
Expand All @@ -71,7 +82,7 @@ public static void RetweetsOfMe()
PerformCommonTimelineTests(timelineResponse); PerformCommonTimelineTests(timelineResponse);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void RetweetedByMe() public static void RetweetedByMe()
Expand All @@ -82,7 +93,7 @@ public static void RetweetedByMe()
PerformCommonTimelineTests(timelineResponse); PerformCommonTimelineTests(timelineResponse);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void RetweetedToMe() public static void RetweetedToMe()
Expand All @@ -94,7 +105,7 @@ public static void RetweetedToMe()
PerformCommonTimelineTests(timelineResponse); PerformCommonTimelineTests(timelineResponse);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void Mentions() public static void Mentions()
Expand All @@ -105,7 +116,7 @@ public static void Mentions()
PerformCommonTimelineTests(timelineResponse); PerformCommonTimelineTests(timelineResponse);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void SinceID() public static void SinceID()
Expand Down
2 changes: 1 addition & 1 deletion Twitterizer2.TestCases/TwitterTrendTests.cs
Expand Up @@ -6,7 +6,7 @@
[TestFixture] [TestFixture]
public static class TwitterTrendTests public static class TwitterTrendTests
{ {
[Category("Read-Only")] [Category("ReadOnly")]
[Category("Search")] [Category("Search")]
[Test] [Test]
public static void CurrentTrends() public static void CurrentTrends()
Expand Down
8 changes: 4 additions & 4 deletions Twitterizer2.TestCases/TwitterUserTests.cs
Expand Up @@ -9,7 +9,7 @@ namespace Twitterizer2.TestCases
[TestFixture] [TestFixture]
public class TwitterUserTests public class TwitterUserTests
{ {
[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void Show() public static void Show()
Expand All @@ -24,7 +24,7 @@ public static void Show()
Assert.That(!string.IsNullOrEmpty(user.Status.Text)); Assert.That(!string.IsNullOrEmpty(user.Status.Text));
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void Search() public static void Search()
Expand All @@ -50,7 +50,7 @@ public static void UploadProfileImage()
Assert.IsNotNull(updatedUser); Assert.IsNotNull(updatedUser);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void LookupUsers() public static void LookupUsers()
Expand All @@ -69,7 +69,7 @@ public static void LookupUsers()
Assert.IsNotNull(result.ResponseObject); Assert.IsNotNull(result.ResponseObject);
} }


[Category("Read-Only")] [Category("ReadOnly")]
[Category("REST")] [Category("REST")]
[Test] [Test]
public static void LookupUsersById() public static void LookupUsersById()
Expand Down
2 changes: 1 addition & 1 deletion Twitterizer2.TestCases/Twitterizer2.TestCases.csproj.user
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<StartAction>Program</StartAction> <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>
</StartArguments> </StartArguments>
</PropertyGroup> </PropertyGroup>
Expand Down
2 changes: 2 additions & 0 deletions Twitterizer2/Methods/Timeline/TimelineOptions.cs
Expand Up @@ -96,6 +96,8 @@ public TimelineOptions()
internal static void Init<T>(Core.TwitterCommand<T> command, TimelineOptions options) internal static void Init<T>(Core.TwitterCommand<T> command, TimelineOptions options)
where T : Core.ITwitterObject where T : Core.ITwitterObject
{ {
command.RequestParameters.Add("include_entities", "true");

if (options == null) if (options == null)
options = new TimelineOptions(); options = new TimelineOptions();


Expand Down

0 comments on commit 40ef9ee

Please sign in to comment.