public void Constructor_Deny_Unrestricted () { TimersDescriptionAttribute tda = new TimersDescriptionAttribute ("Mono"); // Note: see unit tests for why we're not expecting "Mono" as the value Assert.AreEqual (tda.Description, tda.Description, "Description"); // this assert doesn't do anything (except removing warning) but we know, // for CAS, that nothing protects the property getter }
public void ExistingResourceName () { TimersDescriptionAttribute tda = new TimersDescriptionAttribute ("TimerEnabled"); Assert.IsNotNull (tda.Description, "Description"); Assert.IsFalse ("TimerEnabled" == tda.Description, "!Equal"); }
public void AnyString () { TimersDescriptionAttribute tda = new TimersDescriptionAttribute ("Mono"); Assert.IsNull (tda.Description, "Description"); }