public void Reader_Read_Succeeds(string parameterName, string parameterValue, string valueExpected) { // Act _reader.Read(parameterName, parameterValue); IReadOnlyCollection <ExpressionInScope> constraints = _reader.GetConstraints(); // Assert ResourceFieldChainExpression scope = constraints.Select(expressionInScope => expressionInScope.Scope).Single(); scope.Should().BeNull(); QueryExpression value = constraints.Select(expressionInScope => expressionInScope.Expression).Single(); value.ToString().Should().Be(valueExpected); }
public void Reader_Read_Succeeds(string parameterName, string parameterValue, string valueExpected) { // Act _reader.Read(parameterName, parameterValue); var constraints = _reader.GetConstraints(); // Assert var scope = constraints.Select(x => x.Scope).Single(); scope.Should().BeNull(); var value = constraints.Select(x => x.Expression).Single(); value.ToString().Should().Be(valueExpected); }