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