Example #1
0
 public void Resolve_argument_matcher_for_more_specific_type()
 {
     _something.Anything("Hello");
     _something.Received().Anything(Arg.Any <string>());
     _something.DidNotReceive().Anything(Arg.Any <int>());
 }
Example #2
0
        public void ThrowExceptionUsingFactoryFunc()
        {
            _something.Anything(null).Throws(ci => new ArgumentException("Args:" + ci.Args()[0]));

            Assert.Catch <ArgumentException>(() => _something.Anything(null));
        }