/tests/ExpressionWalker.Tests/ExpressionInfoSpecs/When_two_expression_infos_have_matching_parents.cs
C# | 22 lines | 18 code | 4 blank | 0 comment | 0 complexity | f1c29e1dcfded17a91a4468d07feb957 MD5 | raw file
- using FluentAssertions;
- using Machine.Specifications;
- namespace ExpressionWalker.Tests.ExpressionInfoSpecs
- {
- public class When_two_expression_infos_have_matching_parents
- {
- Establish context = () =>
- {
- _first = new ExpressionInfo { Parent = new ExpressionInfo() };
- _second = new ExpressionInfo { Parent = new ExpressionInfo() };
- };
- Because of = () => _result = _first.Equals(_second);
- It matches = () => _result.Should().BeFalse();
- private static ExpressionInfo _first;
- private static ExpressionInfo _second;
- private static bool _result;
- }
- }