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 ()); } }
public void InvalidResourceScope1 () { ResourceScope bad = (ResourceScope) Int32.MinValue; ResourceExposureAttribute rea = new ResourceExposureAttribute (bad); Assert.AreEqual (bad, rea.ResourceExposureLevel, "ResourceScope"); }