1
using NUnit.Framework;
2
using Google.GData.Client.UnitTests;
3
using Google.GData.YouTube;
5
namespace Google.GData.Client.UnitTests.YouTube
10
///This is a test class for BooksTest and is intended
11
///to contain all BooksTest Unit Tests
15
public class BooksTest
17
private TestContext testContextInstance;
20
///Gets or sets the test context which provides
21
///information about and functionality for the current test run.
23
public TestContext TestContext
27
return testContextInstance;
31
testContextInstance = value;
35
#region Additional test attributes
37
//You can use the following additional attributes as you write your tests:
39
//Use ClassInitialize to run code before running the first test in the class
41
//public static void MyClassInitialize(TestContext testContext)
45
//Use ClassCleanup to run code after all tests in a class have run
47
//public static void MyClassCleanup()
51
//Use TestInitialize to run code before running each test
53
//public void MyTestInitialize()
57
//Use TestCleanup to run code after each test has run
59
//public void MyTestCleanup()
67
///A test for Books Constructor
70
public void BooksConstructorTest1()
72
Books target = new Books();
73
Assert.AreEqual(target.Value, null, "Book value should be null after construction");
77
///A test for Books Constructor
80
public void BooksConstructorTest()
82
string initValue = "A,B,c";
83
Books target = new Books(initValue);
84
Assert.AreEqual(target.Value, initValue, "object should have same value after construction");