PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/ExpressionWalker.Tests/ExpressionInfoSpecs/When_two_expression_infos_have_different_parents.cs

https://github.com/CraftyFella/ExpressionWalker
C# | 22 lines | 18 code | 4 blank | 0 comment | 0 complexity | affe4282a5f9a1c44933ad8171387988 MD5 | raw file
  1. using FluentAssertions;
  2. using Machine.Specifications;
  3. namespace ExpressionWalker.Tests.ExpressionInfoSpecs
  4. {
  5. public class When_two_expression_infos_have_different_parents
  6. {
  7. Establish context = () =>
  8. {
  9. _first = new ExpressionInfo { Parent = new ExpressionInfo()};
  10. _second = new ExpressionInfo { Parent = null };
  11. };
  12. Because of = () => _result = _first.Equals(_second);
  13. It doesnt_match = () => _result.Should().BeFalse();
  14. private static ExpressionInfo _first;
  15. private static ExpressionInfo _second;
  16. private static bool _result;
  17. }
  18. }