public void Cannot_use_attribute_without_proper_interface_implementation() { SecureAuthenticationAttribute attribute = null; try { attribute = new SecureAuthenticationAttribute(typeof(string), typeof(string)); }catch { /*do nothing. We expect that this object * can't be instantiated with types * that don't implement required Interfaces*/ } Assert.That(attribute, Is.Null); }
public void Can_use_attribute_with_proper_interface_implementation() { var attribute = new SecureAuthenticationAttribute(typeof(TestCredentialsConfig), typeof(TestLogger)); Assert.That(attribute, Is.Not.Null); }