public void Should_throw_for_abstract_behavior() { Assert.Throws <ArgumentException>(() => BehaviorTypeChecker.ThrowIfInvalid(typeof(AbstractBehavior), Description)); }
public void Should_throw_for_behavior_using_IBehaviorContext() { Assert.Throws <ArgumentException>(() => BehaviorTypeChecker.ThrowIfInvalid(typeof(BehaviorUsingBehaviorContext), Description)); }
public void Should_throw_for_open_generic_behavior() { Assert.Throws <ArgumentException>(() => BehaviorTypeChecker.ThrowIfInvalid(typeof(GenericBehavior <>), Description)); }
public void Should_not_throw_for_closed_generic_behavior() { BehaviorTypeChecker.ThrowIfInvalid(typeof(GenericBehavior <object>), Description); }
public void Should_not_throw_for_behavior_using_context_interfaces() { BehaviorTypeChecker.ThrowIfInvalid(typeof(BehaviorUsingContextInterface), Description); }
public void Should_not_throw_for_simple_behavior() { BehaviorTypeChecker.ThrowIfInvalid(typeof(ValidBehavior), Description); }
public void Should_throw_for_non_behavior() { Assert.Throws <ArgumentException>(() => BehaviorTypeChecker.ThrowIfInvalid(typeof(string), "foo")); }