1
using Google.GData.YouTube;
5
namespace Google.GData.Client.UnitTests.YouTube
10
///This is a test class for FormUploadTokenTest and is intended
11
///to contain all FormUploadTokenTest Unit Tests
13
[TestFixture][Category("YouTube")]
14
public class FormUploadTokenTest
18
private TestContext testContextInstance;
21
///Gets or sets the test context which provides
22
///information about and functionality for the current test run.
24
public TestContext TestContext
28
return testContextInstance;
32
testContextInstance = value;
36
#region Additional test attributes
38
//You can use the following additional attributes as you write your tests:
40
//Use ClassInitialize to run code before running the first test in the class
42
//public static void MyClassInitialize(TestContext testContext)
46
//Use ClassCleanup to run code after all tests in a class have run
48
//public static void MyClassCleanup()
52
//Use TestInitialize to run code before running each test
54
//public void MyTestInitialize()
58
//Use TestCleanup to run code after each test has run
60
//public void MyTestCleanup()
71
[Ignore("not yet written")]
74
Stream stream = null; // TODO: Initialize to an appropriate value
75
FormUploadToken target = new FormUploadToken(stream); // TODO: Initialize to an appropriate value
76
string expected = "secret text string"; // TODO: Initialize to an appropriate value
78
target.Url = expected;
80
Assert.AreEqual(expected, actual);
81
Assert.Fail("Verify the correctness of this test method.");
88
[Ignore("not yet written")]
89
public void TokenTest()
91
Stream stream = null; // TODO: Initialize to an appropriate value
92
FormUploadToken target = new FormUploadToken(stream); // TODO: Initialize to an appropriate value
93
string expected = "secret text string"; // TODO: Initialize to an appropriate value
95
target.Token = expected;
96
actual = target.Token;
97
Assert.AreEqual(expected, actual);
98
Assert.Fail("Verify the correctness of this test method.");
102
///A test for FormUploadToken Constructor
105
public void FormUploadTokenConstructorTest1()
107
string url ="http://www.google.com";
108
string token = "token";
109
FormUploadToken target = new FormUploadToken(url, token);
110
Assert.AreEqual(target.Token, token, "token better be the same");
111
Assert.AreEqual(target.Url, url, "Url better be the same");
115
///A test for FormUploadToken Constructor
118
[Ignore("not yet written")]
119
public void FormUploadTokenConstructorTest()
121
Stream stream = null; // TODO: Initialize to an appropriate value
122
FormUploadToken target = new FormUploadToken(stream);
123
Assert.Fail("TODO: Implement code to verify target");