Exemple #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
            }));
        }
Exemple #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
            }));
        }