public void NonExpressionShouldProduceNoViolations(string displayName, SyntaxBase expression) { var diagnosticWriter = ToListDiagnosticWriter.Create(); TypeValidator.GetCompileTimeConstantViolation(expression, diagnosticWriter); diagnosticWriter.GetDiagnostics().Should().BeEmpty(); }
public void NonLiteralExpression_IsLiteralExpression_ShouldReturnViolations(string displayName, SyntaxBase expression) { var diagnosticWriter = ToListDiagnosticWriter.Create(); TypeValidator.GetCompileTimeConstantViolation(expression, diagnosticWriter); diagnosticWriter.GetDiagnostics().Should().NotBeEmpty(); }
public void NonExpressionShouldProduceNoViolations(string displayName, SyntaxBase expression) { TypeValidator.GetCompileTimeConstantViolation(expression).Should().BeEmpty(); }
public void NonLiteralExpression_IsLiteralExpression_ShouldReturnViolations(string displayName, SyntaxBase expression) { TypeValidator.GetCompileTimeConstantViolation(expression).Should().NotBeEmpty(); }