~ubuntu-branches/debian/squeeze/gnome-do-plugins/squeeze

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2009-06-27 16:11:49 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627161149-b74nc297di2842u1
* New upstream release
  + Pidgin plugin now supports initial text for messages (LP: #338608)
  + Pidgin plugin opens conversations on the correct IM network (LP: #370965)
* debian/rules:
  + Update get-orig-source target.  Upstream no longer ships gdata* binaries,
    so we no longer need to strip them
* debian/patches/00_use_system_gdata
  + Drop.  Upstream now builds against system libgdata.
* debian/patches/04_fix_pidgin_dbus_ints
* debian/patches/10_fix_rhythmbox_file
* debian/patches/15_twitter_api
* debian/patches/20_twitter_overflow:
  + Drop.  Included upstream.
* debian/patches/01_firefox_iceweasel_rename:
  + Refresh for new version
* debian/patches/02_fix_banshee_plugin:
  + Drop refernce to /usr/lib/banshee-1/Banshee.CollectionIndexer.dll.
    This is unnecessary, and causes errors when Banshee isn't installed.
* debian/patches/00_debian_default_plugins:
  + Enable a bunch of useful plugins that do not require configuration from 
    the "Official" plugin set by default.  Makes Do more useful out of the 
    box.
* debian/control:
  + Bump versioned build-dep on gnome-do to 0.8.2
  + Split out gnome-do-plugin-evolution package, now that this is possible.
    libevolution5.0-cil has an annoyingly large dependency stack.
    (LP: #351535) (Closes: #524993).

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
 
using System;
5
 
using System.Collections.Generic;
6
 
using System.Net;
7
 
 
8
 
namespace Google.GData.Client.UnitTests.Core
9
 
{
10
 
    
11
 
    
12
 
    /// <summary>
13
 
    ///This is a test class for GDataRequestFactoryTest and is intended
14
 
    ///to contain all GDataRequestFactoryTest Unit Tests
15
 
    ///</summary>
16
 
    [TestFixture][Category("CoreClient")]
17
 
    public class GDataRequestFactoryTest
18
 
    {
19
 
 
20
 
 
21
 
        private TestContext testContextInstance;
22
 
 
23
 
        /// <summary>
24
 
        ///Gets or sets the test context which provides
25
 
        ///information about and functionality for the current test run.
26
 
        ///</summary>
27
 
        public TestContext TestContext
28
 
        {
29
 
            get
30
 
            {
31
 
                return testContextInstance;
32
 
            }
33
 
            set
34
 
            {
35
 
                testContextInstance = value;
36
 
            }
37
 
        }
38
 
 
39
 
        #region Additional test attributes
40
 
        // 
41
 
        //You can use the following additional attributes as you write your tests:
42
 
        //
43
 
        //Use ClassInitialize to run code before running the first test in the class
44
 
        //[ClassInitialize()]
45
 
        //public static void MyClassInitialize(TestContext testContext)
46
 
        //{
47
 
        //}
48
 
        //
49
 
        //Use ClassCleanup to run code after all tests in a class have run
50
 
        //[ClassCleanup()]
51
 
        //public static void MyClassCleanup()
52
 
        //{
53
 
        //}
54
 
        //
55
 
        //Use TestInitialize to run code before running each test
56
 
        //[TestInitialize()]
57
 
        //public void MyTestInitialize()
58
 
        //{
59
 
        //}
60
 
        //
61
 
        //Use TestCleanup to run code after each test has run
62
 
        //[TestCleanup()]
63
 
        //public void MyTestCleanup()
64
 
        //{
65
 
        //}
66
 
        //
67
 
        #endregion
68
 
 
69
 
 
70
 
        /// <summary>
71
 
        ///A test for UserAgent
72
 
        ///</summary>
73
 
        [Test]
74
 
        public void UserAgentTest()
75
 
        {
76
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
77
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
78
 
            string expected = "TestValue";            string actual;
79
 
            target.UserAgent = expected;
80
 
            actual = target.UserAgent;
81
 
            Assert.AreEqual(expected, actual);
82
 
        }
83
 
 
84
 
        /// <summary>
85
 
        ///A test for UseGZip
86
 
        ///</summary>
87
 
        [Test]
88
 
        public void UseGZipTest()
89
 
        {
90
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
91
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
92
 
            bool expected = true; // TODO: Initialize to an appropriate value
93
 
            bool actual;
94
 
            target.UseGZip = expected;
95
 
            actual = target.UseGZip;
96
 
            Assert.AreEqual(expected, actual);
97
 
        }
98
 
 
99
 
        /// <summary>
100
 
        ///A test for Timeout
101
 
        ///</summary>
102
 
        [Test]
103
 
        public void TimeoutTest()
104
 
        {
105
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
106
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
107
 
            int expected = 250000; // TODO: Initialize to an appropriate value
108
 
            int actual;
109
 
            target.Timeout = expected;
110
 
            actual = target.Timeout;
111
 
            Assert.AreEqual(expected, actual);
112
 
        }
113
 
 
114
 
        /// <summary>
115
 
        ///A test for Slug
116
 
        ///</summary>
117
 
        [Test]
118
 
        public void SlugTest()
119
 
        {
120
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
121
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
122
 
            string expected = "TestValue";            
123
 
            string actual;
124
 
            target.Slug = expected;
125
 
            actual = target.Slug;
126
 
            Assert.AreEqual(expected, actual);
127
 
        }
128
 
 
129
 
        /// <summary>
130
 
        ///A test for Proxy
131
 
        ///</summary>
132
 
        [Test]
133
 
        public void ProxyTest()
134
 
        {
135
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
136
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
137
 
            IWebProxy expected = new WebProxy();
138
 
            IWebProxy actual;
139
 
            target.Proxy = expected;
140
 
            actual = target.Proxy;
141
 
            Assert.AreEqual(expected, actual);
142
 
        }
143
 
 
144
 
        /// <summary>
145
 
        ///A test for KeepAlive
146
 
        ///</summary>
147
 
        [Test]
148
 
        public void KeepAliveTest()
149
 
        {
150
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
151
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
152
 
            bool expected = false; // TODO: Initialize to an appropriate value
153
 
            bool actual;
154
 
            target.KeepAlive = expected;
155
 
            actual = target.KeepAlive;
156
 
            Assert.AreEqual(expected, actual);
157
 
        }
158
 
 
159
 
 
160
 
        /// <summary>
161
 
        ///A test for CustomHeaders
162
 
        ///</summary>
163
 
        [Test]
164
 
        public void CustomHeadersTest()
165
 
        {
166
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
167
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
168
 
            List<string> actual;
169
 
            actual = target.CustomHeaders;
170
 
            Assert.IsNotNull(actual);
171
 
            Assert.IsTrue(actual.Count == 0); 
172
 
        }
173
 
 
174
 
 
175
 
        /// <summary>
176
 
        ///A test for ContentType
177
 
        ///</summary>
178
 
        [Test]
179
 
        public void ContentTypeTest()
180
 
        {
181
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
182
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent); // TODO: Initialize to an appropriate value
183
 
            string expected = "TestValue";            
184
 
            string actual;
185
 
            target.ContentType = expected;
186
 
            actual = target.ContentType;
187
 
            Assert.AreEqual(expected, actual);
188
 
        }
189
 
 
190
 
          /// <summary>
191
 
        ///A test for GDataRequestFactory Constructor
192
 
        ///</summary>
193
 
        [Test]
194
 
        public void GDataRequestFactoryConstructorTest()
195
 
        {
196
 
            string userAgent = "TestValue"; // TODO: Initialize to an appropriate value
197
 
            GDataRequestFactory target = new GDataRequestFactory(userAgent);
198
 
            Assert.IsNotNull(target);
199
 
        }
200
 
    }
201
 
}