PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/ExpressionWalker.Tests/ExpressionInfoSpecs/When_two_expression_infos_have_different_values.cs

https://github.com/CraftyFella/ExpressionWalker
C# | 22 lines | 18 code | 4 blank | 0 comment | 0 complexity | 2c9588e291c91a696dd06f0cda25d084 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_values
  6. {
  7. Establish context = () =>
  8. {
  9. _first = new ExpressionInfo { Value = 1 };
  10. _second = new ExpressionInfo { Value = "Hello" };
  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. }