~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/picasa/PhotoAccessorTest.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.Photos;
 
2
using NUnit.Framework;
 
3
using Google.GData.Client.UnitTests;
 
4
namespace Google.GData.Client.UnitTests.Picasa
 
5
{
 
6
    
 
7
    
 
8
    /// <summary>
 
9
    ///This is a test class for PhotoAccessorTest and is intended
 
10
    ///to contain all PhotoAccessorTest Unit Tests
 
11
    ///</summary>
 
12
    [TestFixture][Category("Picasa")]
 
13
    public class PhotoAccessorTest
 
14
    {
 
15
 
 
16
 
 
17
        private TestContext testContextInstance;
 
18
 
 
19
        /// <summary>
 
20
        ///Gets or sets the test context which provides
 
21
        ///information about and functionality for the current test run.
 
22
        ///</summary>
 
23
        public TestContext TestContext
 
24
        {
 
25
            get
 
26
            {
 
27
                return testContextInstance;
 
28
            }
 
29
            set
 
30
            {
 
31
                testContextInstance = value;
 
32
            }
 
33
        }
 
34
 
 
35
        #region Additional test attributes
 
36
        // 
 
37
        //You can use the following additional attributes as you write your tests:
 
38
        //
 
39
        //Use ClassInitialize to run code before running the first test in the class
 
40
        //[ClassInitialize()]
 
41
        //public static void MyClassInitialize(TestContext testContext)
 
42
        //{
 
43
        //}
 
44
        //
 
45
        //Use ClassCleanup to run code after all tests in a class have run
 
46
        //[ClassCleanup()]
 
47
        //public static void MyClassCleanup()
 
48
        //{
 
49
        //}
 
50
        //
 
51
        //Use TestInitialize to run code before running each test
 
52
        //[TestInitialize()]
 
53
        //public void MyTestInitialize()
 
54
        //{
 
55
        //}
 
56
        //
 
57
        //Use TestCleanup to run code after each test has run
 
58
        //[TestCleanup()]
 
59
        //public void MyTestCleanup()
 
60
        //{
 
61
        //}
 
62
        //
 
63
        #endregion
 
64
 
 
65
 
 
66
        /// <summary>
 
67
        ///A test for Width
 
68
        ///</summary>
 
69
        [Test]
 
70
        public void WidthTest()
 
71
        {
 
72
            PicasaEntry entry = new PhotoEntry();
 
73
            PhotoAccessor target = new PhotoAccessor(entry); 
 
74
            int expected = 5; // TODO: Initialize to an appropriate value
 
75
            int actual;
 
76
            target.Width = expected;
 
77
            actual = target.Width;
 
78
            Assert.AreEqual(expected, actual);
 
79
        }
 
80
 
 
81
        /// <summary>
 
82
        ///A test for Version
 
83
        ///</summary>
 
84
        [Test]
 
85
        public void VersionTest()
 
86
        {
 
87
            PicasaEntry entry = new PhotoEntry();
 
88
            PhotoAccessor target = new PhotoAccessor(entry);
 
89
            string expected = "TestValue"; 
 
90
            string actual;
 
91
            target.Version = expected;
 
92
            actual = target.Version;
 
93
            Assert.AreEqual(expected, actual);
 
94
        }
 
95
 
 
96
        /// <summary>
 
97
        ///A test for Timestamp
 
98
        ///</summary>
 
99
        [Test]
 
100
        public void TimestampTest()
 
101
        {
 
102
            PicasaEntry entry = new PhotoEntry();
 
103
            PhotoAccessor target = new PhotoAccessor(entry);
 
104
            ulong expected = 122; // TODO: Initialize to an appropriate value
 
105
            ulong actual;
 
106
            target.Timestamp = expected;
 
107
            actual = target.Timestamp;
 
108
            Assert.AreEqual(expected, actual);
 
109
        }
 
110
 
 
111
        /// <summary>
 
112
        ///A test for Size
 
113
        ///</summary>
 
114
        [Test]
 
115
        public void SizeTest()
 
116
        {
 
117
            PicasaEntry entry = new PhotoEntry();
 
118
            PhotoAccessor target = new PhotoAccessor(entry);
 
119
            long expected = 12; // TODO: Initialize to an appropriate value
 
120
            long actual;
 
121
            target.Size = expected;
 
122
            actual = target.Size;
 
123
            Assert.AreEqual(expected, actual);
 
124
        }
 
125
 
 
126
        /// <summary>
 
127
        ///A test for Rotation
 
128
        ///</summary>
 
129
        [Test]
 
130
        public void RotationTest()
 
131
        {
 
132
            PicasaEntry entry = new PhotoEntry();
 
133
            PhotoAccessor target = new PhotoAccessor(entry);
 
134
            int expected = 45; // TODO: Initialize to an appropriate value
 
135
            int actual;
 
136
            target.Rotation = expected;
 
137
            actual = target.Rotation;
 
138
            Assert.AreEqual(expected, actual);
 
139
        }
 
140
 
 
141
        /// <summary>
 
142
        ///A test for Position
 
143
        ///</summary>
 
144
        [Test]
 
145
        public void PositionTest()
 
146
        {
 
147
            PicasaEntry entry = new PhotoEntry();
 
148
            PhotoAccessor target = new PhotoAccessor(entry);
 
149
            double expected = 0.5F; // TODO: Initialize to an appropriate value
 
150
            double actual;
 
151
            target.Position = expected;
 
152
            actual = target.Position;
 
153
            Assert.AreEqual(expected, actual);
 
154
        }
 
155
 
 
156
        /// <summary>
 
157
        ///A test for PhotoTitle
 
158
        ///</summary>
 
159
        [Test]
 
160
        public void PhotoTitleTest()
 
161
        {
 
162
            PicasaEntry entry = new PhotoEntry();
 
163
            PhotoAccessor target = new PhotoAccessor(entry);
 
164
            string expected = "TestValue"; 
 
165
            string actual;
 
166
            target.PhotoTitle = expected;
 
167
            actual = target.PhotoTitle;
 
168
            Assert.AreEqual(expected, actual);
 
169
        }
 
170
 
 
171
        /// <summary>
 
172
        ///A test for PhotoSummary
 
173
        ///</summary>
 
174
        [Test]
 
175
        public void PhotoSummaryTest()
 
176
        {
 
177
            PicasaEntry entry = new PhotoEntry();
 
178
            PhotoAccessor target = new PhotoAccessor(entry);
 
179
            string expected = "TestValue"; 
 
180
            string actual;
 
181
            target.PhotoSummary = expected;
 
182
            actual = target.PhotoSummary;
 
183
            Assert.AreEqual(expected, actual);
 
184
        }
 
185
 
 
186
        /// <summary>
 
187
        ///A test for Longitude
 
188
        ///</summary>
 
189
        [Test]
 
190
        public void LongitudeTest()
 
191
        {
 
192
            PicasaEntry entry = new PhotoEntry();
 
193
            PhotoAccessor target = new PhotoAccessor(entry);
 
194
            double expected = 12.5F; // TODO: Initialize to an appropriate value
 
195
            double actual;
 
196
            target.Longitude = expected;
 
197
            actual = target.Longitude;
 
198
            Assert.AreEqual(expected, actual);
 
199
        }
 
200
 
 
201
        /// <summary>
 
202
        ///A test for Latitude
 
203
        ///</summary>
 
204
        [Test]
 
205
        public void LatitudeTest()
 
206
        {
 
207
            PicasaEntry entry = new PhotoEntry();
 
208
            PhotoAccessor target = new PhotoAccessor(entry);
 
209
            double expected = 12.5F; // TODO: Initialize to an appropriate value
 
210
            double actual;
 
211
            target.Latitude = expected;
 
212
            actual = target.Latitude;
 
213
            Assert.AreEqual(expected, actual);
 
214
        }
 
215
 
 
216
        /// <summary>
 
217
        ///A test for Id
 
218
        ///</summary>
 
219
        [Test]
 
220
        public void IdTest()
 
221
        {
 
222
            PicasaEntry entry = new PhotoEntry();
 
223
            PhotoAccessor target = new PhotoAccessor(entry);
 
224
            string expected = "TestValue"; 
 
225
            string actual;
 
226
            target.Id = expected;
 
227
            actual = target.Id;
 
228
            Assert.AreEqual(expected, actual);
 
229
        }
 
230
 
 
231
        /// <summary>
 
232
        ///A test for Height
 
233
        ///</summary>
 
234
        [Test]
 
235
        public void HeightTest()
 
236
        {
 
237
            PicasaEntry entry = new PhotoEntry();
 
238
            PhotoAccessor target = new PhotoAccessor(entry);
 
239
            int expected = 12; // TODO: Initialize to an appropriate value
 
240
            int actual;
 
241
            target.Height = expected;
 
242
            actual = target.Height;
 
243
            Assert.AreEqual(expected, actual);
 
244
        }
 
245
 
 
246
        /// <summary>
 
247
        ///A test for CommentingEnabled
 
248
        ///</summary>
 
249
        [Test]
 
250
        public void CommentingEnabledTest()
 
251
        {
 
252
            PicasaEntry entry = new PhotoEntry();
 
253
            PhotoAccessor target = new PhotoAccessor(entry);
 
254
            bool expected = true;
 
255
            bool actual;
 
256
            target.CommentingEnabled = expected;
 
257
            actual = target.CommentingEnabled;
 
258
            Assert.AreEqual(expected, actual);
 
259
        }
 
260
 
 
261
        /// <summary>
 
262
        ///A test for CommentCount
 
263
        ///</summary>
 
264
        [Test]
 
265
        public void CommentCountTest()
 
266
        {
 
267
            PicasaEntry entry = new PhotoEntry();
 
268
            PhotoAccessor target = new PhotoAccessor(entry);
 
269
            uint expected = 12; // TODO: Initialize to an appropriate value
 
270
            uint actual;
 
271
            target.CommentCount = expected;
 
272
            actual = target.CommentCount;
 
273
            Assert.AreEqual(expected, actual);
 
274
        }
 
275
 
 
276
        /// <summary>
 
277
        ///A test for Client
 
278
        ///</summary>
 
279
        [Test]
 
280
        public void ClientTest()
 
281
        {
 
282
            PicasaEntry entry = new PhotoEntry();
 
283
            PhotoAccessor target = new PhotoAccessor(entry);
 
284
            string expected = "TestValue"; 
 
285
            string actual;
 
286
            target.Client = expected;
 
287
            actual = target.Client;
 
288
            Assert.AreEqual(expected, actual);
 
289
        }
 
290
 
 
291
        /// <summary>
 
292
        ///A test for Checksum
 
293
        ///</summary>
 
294
        [Test]
 
295
        public void ChecksumTest()
 
296
        {
 
297
            PicasaEntry entry = new PhotoEntry();
 
298
            PhotoAccessor target = new PhotoAccessor(entry);
 
299
 
 
300
            string expected = "TestValue"; 
 
301
            string actual;
 
302
            target.Checksum = expected;
 
303
            actual = target.Checksum;
 
304
            Assert.AreEqual(expected, actual);
 
305
        }
 
306
 
 
307
        /// <summary>
 
308
        ///A test for AlbumId
 
309
        ///</summary>
 
310
        [Test]
 
311
        public void AlbumIdTest()
 
312
        {
 
313
            PicasaEntry entry = new PhotoEntry();
 
314
            PhotoAccessor target = new PhotoAccessor(entry);
 
315
            string expected = "TestValue"; 
 
316
            string actual;
 
317
            target.AlbumId = expected;
 
318
            actual = target.AlbumId;
 
319
            Assert.AreEqual(expected, actual);
 
320
        }
 
321
 
 
322
    }
 
323
}