public void ShouldCreateMatcher()
		{
			var attr = new AdvancedMatcherAttribute(typeof(MockMatcher));
			var matcher = attr.CreateMatcher();

			Assert.NotNull(matcher);
		}
Esempio n. 2
0
        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);
		}
Esempio n. 5
0
        public void ShouldThrowRealException()
        {
            var attr = new AdvancedMatcherAttribute(typeof(ThrowingMatcher));

            Assert.Throws <ArgumentException>(() => attr.CreateMatcher());
        }
Esempio n. 6
0
        public void ShouldExposeMatcherType()
        {
            var attr = new AdvancedMatcherAttribute(typeof(MockMatcher));

            Assert.Equal(typeof(MockMatcher), attr.MatcherType);
        }