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 SchoolTest and is intended
11
///to contain all SchoolTest Unit Tests
16
public class SchoolTest
20
private TestContext testContextInstance;
23
///Gets or sets the test context which provides
24
///information about and functionality for the current test run.
26
public TestContext TestContext
30
return testContextInstance;
34
testContextInstance = value;
38
#region Additional test attributes
40
//You can use the following additional attributes as you write your tests:
42
//Use ClassInitialize to run code before running the first test in the class
44
//public static void MyClassInitialize(TestContext testContext)
48
//Use ClassCleanup to run code after all tests in a class have run
50
//public static void MyClassCleanup()
54
//Use TestInitialize to run code before running each test
56
//public void MyTestInitialize()
60
//Use TestCleanup to run code after each test has run
62
//public void MyTestCleanup()
70
///A test for School Constructor
73
public void SchoolConstructorTest1()
75
School target = new School();
76
Assert.IsNull(target.Value, "Object value should be null after construction");
80
///A test for School Constructor
83
public void SchoolConstructorTest()
85
string initValue = "secret test string";
86
School target = new School(initValue);
87
Assert.AreEqual(target.Value, initValue, "Object value should be identical after construction");