Example #1
0
        public void VerifyAll_should_verify_all_setup()
        {
            // Arrange
            var ms = new MockStorage(MockBehavior.Default);
            var m  = ms.Create <IComparable <int> >();

            m.Expect(_ => _.CompareTo(42)).Returns(0);
            m.Setup(_ => _.CompareTo(23)).Returns(1);

            // Act
            m.Object.CompareTo(42);
            m.Object.CompareTo(23);

            // Assert
            ms.VerifyAll();
        }