1
using Google.GData.Client;
3
using Google.GData.Client.UnitTests;
9
using System.Runtime.Serialization;
12
namespace Google.GData.Client.UnitTests.Core
17
///This is a test class for GDataRequestExceptionTest and is intended
18
///to contain all GDataRequestExceptionTest Unit Tests
20
[TestFixture][Category("CoreClient")]
21
public class GDataRequestExceptionTest
25
private TestContext testContextInstance;
28
///Gets or sets the test context which provides
29
///information about and functionality for the current test run.
31
public TestContext TestContext
35
return testContextInstance;
39
testContextInstance = value;
43
#region Additional test attributes
45
//You can use the following additional attributes as you write your tests:
47
//Use ClassInitialize to run code before running the first test in the class
49
//public static void MyClassInitialize(TestContext testContext)
53
//Use ClassCleanup to run code after all tests in a class have run
55
//public static void MyClassCleanup()
59
//Use TestInitialize to run code before running each test
61
//public void MyTestInitialize()
65
//Use TestCleanup to run code after each test has run
67
//public void MyTestCleanup()
75
///A test for ResponseString
78
public void ResponseStringTest()
80
GDataRequestException target = new GDataRequestException(); // TODO: Initialize to an appropriate value
82
actual = target.ResponseString;
83
Assert.IsNull(actual);
87
///A test for Response
90
public void ResponseTest()
92
GDataRequestException target = new GDataRequestException(); // TODO: Initialize to an appropriate value
94
actual = target.Response;
95
Assert.IsNull(actual);
99
///A test for GDataRequestException Constructor
102
public void GDataRequestExceptionConstructorTest()
104
string msg = "TestValue"; // TODO: Initialize to an appropriate value
105
WebException exception = new WebException();
106
GDataRequestException target = new GDataRequestException(msg, exception);
108
Assert.IsNotNull(target);
109
Assert.AreEqual(msg, target.Message);
110
Assert.AreEqual(exception, target.InnerException);