9using System.Collections.Generic;
14using Microsoft.VisualStudio.TestTools.UnitTesting;
19using TestClass = NUnit.Framework.TestFixtureAttribute;
20using TestInitialize = NUnit.Framework.SetUpAttribute;
21using TestCleanup = NUnit.Framework.TearDownAttribute;
22using TestMethod = NUnit.Framework.TestAttribute;
33 public string Test1 {
get {
return "one"; } }
35 public string Test2 {
get {
return "two"; }
set { one = value; } }
37 public string Test3 {
set { three = value; } }
44 Assert.AreEqual(expected, actual);
52 Assert.AreEqual(expected, actual);
56 [ExpectedException(typeof(NotSupportedException))]
63 [ExpectedException(typeof(NotSupportedException))]
74 Assert.AreEqual(expected, this.one);
80 var expected =
"three";
82 Assert.AreEqual(expected, this.three);
void PropertySetWithGetSuccess()
void PropertyGetNoSetSuccess()
void PropertyGetWithSetSuccess()
void PropertySetOnlyGetFail()
void PropertySetNoGetSuccess()
void PropertyGetOnlySetFail()