public void EatContainingExpressionAndReturnItKindTest() { // Arrange var snapshot = Mock.Of<ISnapshot>(); var task = Mock.Of<IUnaryExpression>(); var awaitExpression = Mock.Of<IAwaitExpression>(t => t.Task == task); var eater = Mock.Of<IEater>(t => t.Eat(snapshot, task) == ExpressionKind.None); var awaitExpressionEater = new AwaitExpressionEater(eater); // Act var kind = awaitExpressionEater.Eat(snapshot, awaitExpression); // Assert Assert.AreEqual(kind, ExpressionKind.None); }
public void EatContainingExpressionAndReturnItKindTest() { // Arrange var snapshot = Mock.Of <ISnapshot>(); var task = Mock.Of <IUnaryExpression>(); var awaitExpression = Mock.Of <IAwaitExpression>(t => t.Task == task); var eater = Mock.Of <IEater>(t => t.Eat(snapshot, task) == ExpressionKind.None); var awaitExpressionEater = new AwaitExpressionEater(eater); // Act var kind = awaitExpressionEater.Eat(snapshot, awaitExpression); // Assert Assert.AreEqual(kind, ExpressionKind.None); }