PageRenderTime 41ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/ExpressionWalker.Tests/ExpressionInfoSpecs/When_two_expression_infos_are_same_instance.cs

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