示例#1
0
        public void ShouldCorrectlyReportLikenessWithNSubstitute()
        {
            var s = Substitute.For <IXyz>();

            s.Do(new List <int>());

            s.Received(1).Do(XArg.IsLike(new List <int>()));
            s.DidNotReceive().Do(XArg.IsLike(new List <int> {
                1
            }));
        }
示例#2
0
        public void ShouldWorkCorrectlyWithNSubstitute()
        {
            var s = Substitute.For <Ixyz>();

            s.Do(new List <int>());

            s.Received(1).Do(XArg.IsLike(new List <int>()));
            s.DidNotReceive().Do(XArg.IsLike(new List <int> {
                1
            }));
        }