/tests/ExpressionWalker.Tests/ExpressionInfoSpecs/When_two_expression_infos_have_matching_parents.cs

https://github.com/CraftyFella/ExpressionWalker · C# · 22 lines · 18 code · 4 blank · 0 comment · 0 complexity · f1c29e1dcfded17a91a4468d07feb957 MD5 · raw file

  1. using FluentAssertions;
  2. using Machine.Specifications;
  3. namespace ExpressionWalker.Tests.ExpressionInfoSpecs
  4. {
  5. public class When_two_expression_infos_have_matching_parents
  6. {
  7. Establish context = () =>
  8. {
  9. _first = new ExpressionInfo { Parent = new ExpressionInfo() };
  10. _second = new ExpressionInfo { Parent = new ExpressionInfo() };
  11. };
  12. Because of = () => _result = _first.Equals(_second);
  13. It matches = () => _result.Should().BeFalse();
  14. private static ExpressionInfo _first;
  15. private static ExpressionInfo _second;
  16. private static bool _result;
  17. }
  18. }