Beispiel #1
0
		public void DefaultValuesTest()
		{
			var item = new StateItem();

			Assert.AreEqual(null, item.Type);
			Assert.AreEqual(null, item.Key);
			Assert.AreEqual(null, item.Value);
		}
Beispiel #2
0
		public void GetterSetterTest()
		{
			var item = new StateItem();

			item.Key = "Key";
			item.Type = typeof(StateItem);
			item.Value = this;

			Assert.AreEqual("Key", item.Key);
			Assert.AreEqual(typeof(StateItem), item.Type);
			Assert.AreEqual(this, item.Value);
		}