1
using Google.GData.YouTube;
3
using Google.GData.Extensions;
5
namespace Google.GData.Client.UnitTests.YouTube
10
///This is a test class for PlaylistsEntryTest and is intended
11
///to contain all PlaylistsEntryTest Unit Tests
13
[TestFixture][Category("YouTube")]
14
public class PlaylistsEntryTest
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()
68
///A test for FeedLink
71
public void FeedLinkTest()
73
PlaylistsEntry target = new PlaylistsEntry(); // TODO: Initialize to an appropriate value
74
FeedLink expected = new FeedLink();
76
target.FeedLink = expected;
77
actual = target.FeedLink;
78
Assert.AreEqual(expected, actual);
82
///A test for Description
85
public void DescriptionTest()
87
PlaylistsEntry target = new PlaylistsEntry(); // TODO: Initialize to an appropriate value
88
string expected = "secret text string"; // TODO: Initialize to an appropriate value
90
target.Description = expected;
91
actual = target.Description;
92
Assert.AreEqual(expected, actual);
96
///A test for PlaylistsEntry Constructor
99
public void PlaylistsEntryConstructorTest()
101
PlaylistsEntry target = new PlaylistsEntry();
102
Assert.IsNotNull(target);
103
Assert.IsNull(target.FeedLink);
104
Assert.IsNull(target.Description);