public void IsIncludedServiceBehaviorByTypeFalseTests() { // Arrange var sb = new ServiceBehavior1(); var attrib = new IncludedServiceBehaviorTypesAttribute(ServiceBehaviorType.Authenticator); // Act & Assert Assert.IsTrue(ServiceBehaviorApplicator.IsIncluded(sb, attrib)); }
public void IsExcludedIServiceBehavior1s() { // Arrange var sb = new ServiceBehaviorThirdParty(); var attrib = new ExcludedServiceBehaviorsAttribute("ServiceBehavior1"); // Act & Assert Assert.IsFalse(ServiceBehaviorApplicator.IsIncluded(sb, attrib)); }
public void IsIncludedServiceBehaviorBaseFalseTests() { // Arrange var sb = new ServiceBehavior1(); var attrib = new IncludedServiceBehaviorsAttribute("ServiceBehaviorBogus"); // Act & Assert Assert.IsFalse(ServiceBehaviorApplicator.IsIncluded(sb, attrib)); }