~ubuntu-branches/ubuntu/jaunty/gnome-do-plugins/jaunty-proposed

« back to all changes in this revision

Viewing changes to BundledLibraries/libgoogle-data-mono-1.4.0.2/src/unittests/core/GDataGAuthRequestFactoryTest.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane, Daniel T Chen, Iain Lane
  • Date: 2009-03-18 00:40:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090318004051-ujn1ja3kiu3ky7ru
Tags: 0.8.1.3+dfsg-0ubuntu1
[ Daniel T Chen ]
* New upstream release (LP: #344578)
  + Banshee plugin goes crazy if banshee isn't loaded first
    (LP: #289802)
  + gnome-do gCalculate plugin fails to display "times" symbol
    (LP: #274252)
  + Banshee-1 fails to build in Mono 2.0 (LP: #309188)
  + Pidgin 2.5.4 has incompatible dbus interface. s/uint/int/
    (LP: #314927)
  + Pidgin plugin hangs opening a chat if pidgin is unresponsive
    (LP: #315565)
  + twitter plugin still reports friend updates even when
    deactivated (LP: #317674)
  + Misspelling in microblogging plugin confirmation message
    (LP: #319433)
  + make install uses mdtool, but configure doesn't check for it
    (LP: #322951)
  + Virtualbox Icon in 2.10 are broken because of a new
    specification (LP: #323902)
  + Google Maps Plugin shouldn't always use route (LP: #324271)
  + Fix for Google Maps when using newlines and other special
    characters (LP: #324667)
  + VirtualBox failed to load icon (LP: #325712)
  + 'Read Man Pages' plugin makes Gnome-Do unresponsive
    (LP: #325935)
  + Search returns broken URLs (LP: #327855)
  + Default action for SSH hosts is "open" (LP: #328236)
  + Files and Folders Configuration doesn't use standard buttons
    (LP: #328236)
  + Window manager maximize action should focus if window is not
    currently focused (LP: #258893)
  + Locate plugin has no error message (LP: #262360)
  + Wishlist: Let user specify files and folders to ignore
    (LP: #263177)
  + ts-client plugin doesn't index subdirectories (LP: #322352)
  + Max 3000 items in Files and Folders plugin (LP: #324105)
  + putty cannot find host when running from gnome do
    (LP: #324282)
  + locate plugin with globbing (LP: #334798)
  + Twitter plugin encountered an error in UpdateFriends
    (LP: #317575)
  + gnome-terminal profiles no longer work (LP: #321977)
  + Creating a task using Remember the Milk plugin can fail if
    no task list is specified (LP: #324066)
  + bundled libraries makefile needs destdir (LP: #324704)
  + Typographical error in del.icio.us plugin (LP: #330525)
  + ImageShack fails to upload (LP: #337324)
* debian/copyright
  + Refresh for new upstream version; new plugins added.
* debian/patches/00_dfsg_autofoo.dpatch
  + Update for new upstream version
  + Don't build the YouTube plugin due to removal of shipped
    exes and dlls causing FTBFS
* debian/patches/02_ssh_respect_exec_arg.dpatch
  debian/patches/03_buildsystem_respect_mcs.dpatch
  debian/patches/04_fix_pidgin_dbus_ints.dpatch
  + Drop; fixed upstream

[ Iain Lane ]
* debian/rules: Update repackaging to not delete *.dll; upstream now ships
  source copies of google-gdata meaning we can now enable the Google and
  Youtube plugins.
* debian/patches/00_dfsg_autofoo: Drop, fixed by including and building
  these libs now. 
* debian/copyright: Update with information for google-gdata. 
* debian/patches/04_fix_pidgin_dbus_ints.dpatch: Add left out piece of patch
* debian/control: Bump gnome-do build-dep to require current version. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using Google.GData.Client;
 
2
using NUnit.Framework;
 
3
using Google.GData.Client.UnitTests;
 
4
 
 
5
    
 
6
    
 
7
 
 
8
using System;
 
9
 
 
10
namespace Google.GData.Client.UnitTests.Core
 
11
{
 
12
    
 
13
    
 
14
    /// <summary>
 
15
    ///This is a test class for GDataGAuthRequestFactoryTest and is intended
 
16
    ///to contain all GDataGAuthRequestFactoryTest Unit Tests
 
17
    ///</summary>
 
18
    [TestFixture][Category("CoreClient")]
 
19
    public class GDataGAuthRequestFactoryTest
 
20
    {
 
21
 
 
22
 
 
23
        private TestContext testContextInstance;
 
24
 
 
25
        /// <summary>
 
26
        ///Gets or sets the test context which provides
 
27
        ///information about and functionality for the current test run.
 
28
        ///</summary>
 
29
        public TestContext TestContext
 
30
        {
 
31
            get
 
32
            {
 
33
                return testContextInstance;
 
34
            }
 
35
            set
 
36
            {
 
37
                testContextInstance = value;
 
38
            }
 
39
        }
 
40
 
 
41
        #region Additional test attributes
 
42
        // 
 
43
        //You can use the following additional attributes as you write your tests:
 
44
        //
 
45
        //Use ClassInitialize to run code before running the first test in the class
 
46
        //[ClassInitialize()]
 
47
        //public static void MyClassInitialize(TestContext testContext)
 
48
        //{
 
49
        //}
 
50
        //
 
51
        //Use ClassCleanup to run code after all tests in a class have run
 
52
        //[ClassCleanup()]
 
53
        //public static void MyClassCleanup()
 
54
        //{
 
55
        //}
 
56
        //
 
57
        //Use TestInitialize to run code before running each test
 
58
        //[TestInitialize()]
 
59
        //public void MyTestInitialize()
 
60
        //{
 
61
        //}
 
62
        //
 
63
        //Use TestCleanup to run code after each test has run
 
64
        //[TestCleanup()]
 
65
        //public void MyTestCleanup()
 
66
        //{
 
67
        //}
 
68
        //
 
69
        #endregion
 
70
 
 
71
 
 
72
        /// <summary>
 
73
        ///A test for UserAgent
 
74
        ///</summary>
 
75
        [Test]
 
76
        public void UserAgentTest()
 
77
        {
 
78
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
79
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
80
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
81
            string expected = "TestValue";            
 
82
            string actual;
 
83
            target.UserAgent = expected;
 
84
            actual = target.UserAgent;
 
85
            Assert.AreEqual(expected, actual);
 
86
        }
 
87
 
 
88
        /// <summary>
 
89
        ///A test for StrictRedirect
 
90
        ///</summary>
 
91
        [Test]
 
92
        public void StrictRedirectTest()
 
93
        {
 
94
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
95
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
96
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
97
            bool expected = true; // TODO: Initialize to an appropriate value
 
98
            bool actual;
 
99
            target.StrictRedirect = expected;
 
100
            actual = target.StrictRedirect;
 
101
            Assert.AreEqual(expected, actual);
 
102
        }
 
103
 
 
104
        /// <summary>
 
105
        ///A test for Service
 
106
        ///</summary>
 
107
        [Test]
 
108
        public void ServiceTest()
 
109
        {
 
110
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
111
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
112
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
113
            string expected = "TestValue";            
 
114
            string actual;
 
115
            target.Service = expected;
 
116
            actual = target.Service;
 
117
            Assert.AreEqual(expected, actual);
 
118
        }
 
119
 
 
120
        /// <summary>
 
121
        ///A test for NumberOfRetries
 
122
        ///</summary>
 
123
        [Test]
 
124
        public void NumberOfRetriesTest()
 
125
        {
 
126
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
127
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
128
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
129
            int expected = 2; // TODO: Initialize to an appropriate value
 
130
            int actual;
 
131
            target.NumberOfRetries = expected;
 
132
            actual = target.NumberOfRetries;
 
133
            Assert.AreEqual(expected, actual);
 
134
        }
 
135
 
 
136
        /// <summary>
 
137
        ///A test for MethodOverride
 
138
        ///</summary>
 
139
        [Test]
 
140
        public void MethodOverrideTest()
 
141
        {
 
142
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
143
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
144
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
145
            bool expected = true; // TODO: Initialize to an appropriate value
 
146
            bool actual;
 
147
            target.MethodOverride = expected;
 
148
            actual = target.MethodOverride;
 
149
            Assert.AreEqual(expected, actual);
 
150
        }
 
151
 
 
152
        /// <summary>
 
153
        ///A test for Handler
 
154
        ///</summary>
 
155
        [Test]
 
156
        public void HandlerTest()
 
157
        {
 
158
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
159
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
160
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
161
            string expected = "TestValue";            
 
162
            string actual;
 
163
            target.Handler = expected;
 
164
            actual = target.Handler;
 
165
            Assert.AreEqual(expected, actual);
 
166
        }
 
167
 
 
168
        /// <summary>
 
169
        ///A test for GAuthToken
 
170
        ///</summary>
 
171
        [Test]
 
172
        public void GAuthTokenTest()
 
173
        {
 
174
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
175
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
176
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
177
            string expected = "TestValue";            
 
178
            string actual;
 
179
            target.GAuthToken = expected;
 
180
            actual = target.GAuthToken;
 
181
            Assert.AreEqual(expected, actual);
 
182
        }
 
183
 
 
184
        /// <summary>
 
185
        ///A test for CaptchaToken
 
186
        ///</summary>
 
187
        [Test]
 
188
        public void CaptchaTokenTest()
 
189
        {
 
190
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
191
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
192
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
193
            string expected = "TestValue";            
 
194
            string actual;
 
195
            target.CaptchaToken = expected;
 
196
            actual = target.CaptchaToken;
 
197
            Assert.AreEqual(expected, actual);
 
198
        }
 
199
 
 
200
        /// <summary>
 
201
        ///A test for CaptchaAnswer
 
202
        ///</summary>
 
203
        [Test]
 
204
        public void CaptchaAnswerTest()
 
205
        {
 
206
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
207
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
208
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
209
            string expected = "TestValue";            
 
210
            string actual;
 
211
            target.CaptchaAnswer = expected;
 
212
            actual = target.CaptchaAnswer;
 
213
            Assert.AreEqual(expected, actual);
 
214
        }
 
215
 
 
216
        /// <summary>
 
217
        ///A test for ApplicationName
 
218
        ///</summary>
 
219
        [Test]
 
220
        public void ApplicationNameTest()
 
221
        {
 
222
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
223
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
224
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
225
            string expected = "TestValue";            
 
226
            string actual;
 
227
            target.ApplicationName = expected;
 
228
            actual = target.ApplicationName;
 
229
            Assert.AreEqual(expected, actual);
 
230
        }
 
231
 
 
232
        /// <summary>
 
233
        ///A test for AccountType
 
234
        ///</summary>
 
235
        [Test]
 
236
        public void AccountTypeTest()
 
237
        {
 
238
            string service = "TestValue"; // TODO: Initialize to an appropriate value
 
239
            string applicationName = "TestValue"; // TODO: Initialize to an appropriate value
 
240
            GDataGAuthRequestFactory target = new GDataGAuthRequestFactory(service, applicationName); // TODO: Initialize to an appropriate value
 
241
            string expected = "TestValue";            
 
242
            string actual;
 
243
            target.AccountType = expected;
 
244
            actual = target.AccountType;
 
245
            Assert.AreEqual(expected, actual);
 
246
        }
 
247
    }
 
248
}