public void ReturnStubCandidateTest()
        {
            // Arrange
            var snapshot = Mock.Of<ISnapshot>();
            var typeofExpression = Mock.Of<ITypeofExpression>();
            var eater = Mock.Of<IEater>();
            var typeofExpressionEater = new TypeofExpressionEater(eater);

            // Act
            var kind = typeofExpressionEater.Eat(snapshot, typeofExpression);

            // Assert
            Assert.AreEqual(kind, ExpressionKind.StubCandidate);
        }
Exemple #2
0
        public void ReturnStubCandidateTest()
        {
            // Arrange
            var snapshot              = Mock.Of <ISnapshot>();
            var typeofExpression      = Mock.Of <ITypeofExpression>();
            var eater                 = Mock.Of <IEater>();
            var typeofExpressionEater = new TypeofExpressionEater(eater);

            // Act
            var kind = typeofExpressionEater.Eat(snapshot, typeofExpression);

            // Assert
            Assert.AreEqual(kind, ExpressionKind.StubCandidate);
        }