Exemplo n.º 1
0
        public void OfOfTExpressionOfFuncOfTOfBoolean_should_throw_NotSupportedException_because_we_cannot_extract_mock_from_IQueryable()
        {
            // Arrange
            var ms = new MockStorage(MockBehavior.Default);

            // Act, Assert
            Assert.Throws <NotSupportedException>(() => ms.Of <ICloneable>(_ => _ is IComparable));
        }
Exemplo n.º 2
0
        public void OfOfT_should_throw_NotSupportedException_because_we_cannot_extract_mock_from_IQueryable()
        {
            // Arrange
            var ms = new MockStorage(MockBehavior.Default);

            // Act, Assert
            Assert.Throws <NotSupportedException>(() => ms.Of <ICloneable>());
        }