public void ShouldCreateMatcher() { var attr = new AdvancedMatcherAttribute(typeof(MockMatcher)); var matcher = attr.CreateMatcher(); Assert.NotNull(matcher); }
public void ShouldThrowRealException() { var attr = new AdvancedMatcherAttribute(typeof(ThrowingMatcher)); Assert.Throws<ArgumentException>(() => attr.CreateMatcher()); }
public void ShouldExposeMatcherType() { var attr = new AdvancedMatcherAttribute(typeof(MockMatcher)); Assert.Equal(typeof(MockMatcher), attr.MatcherType); }
public void ShouldThrowRealException() { var attr = new AdvancedMatcherAttribute(typeof(ThrowingMatcher)); Assert.Throws <ArgumentException>(() => attr.CreateMatcher()); }