コード例 #1
0
		public void Constructor1 ()
		{
			ResourceExposureAttribute rea = null;
			Array values = Enum.GetValues (typeof (ResourceScope));
			foreach (ResourceScope resource in values) {
				rea = new ResourceExposureAttribute (resource);
				Assert.AreEqual (resource, rea.ResourceExposureLevel, resource.ToString ());
			}
		}
コード例 #2
0
		public void InvalidResourceScope1 ()
		{
			ResourceScope bad = (ResourceScope) Int32.MinValue;
			ResourceExposureAttribute rea = new ResourceExposureAttribute (bad);
			Assert.AreEqual (bad, rea.ResourceExposureLevel, "ResourceScope");
		}