1
using Google.GData.Photos;
3
using Google.GData.Client.UnitTests;
4
namespace Google.GData.Client.UnitTests.Picasa
9
///This is a test class for TagAccessorTest and is intended
10
///to contain all TagAccessorTest Unit Tests
12
[TestFixture][Category("Picasa")]
13
public class TagAccessorTest
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()
70
public void WeightTest()
72
PicasaEntry entry = new PicasaEntry();
74
TagAccessor target = new TagAccessor(entry); // TODO: Initialize to an appropriate value
75
uint expected = 5; // TODO: Initialize to an appropriate value
77
target.Weight = expected;
78
actual = target.Weight;
79
Assert.AreEqual(expected, actual);
83
///A test for TagAccessor Constructor
86
public void TagAccessorConstructorTest()
88
PicasaEntry entry = new PicasaEntry();
90
TagAccessor target = new TagAccessor(entry);
91
Assert.IsNotNull(target);