Exemplo n.º 1
0
        public void NextValue_WhenCalled_ReturnsEquivalentSqlExpression(string sequence, string schema, string expectedExpression)
        {
            // Arrange
            var expressions = new Oracle11Expressions();
            // Act
            var expression = expressions.NextValue(sequence, schema);

            // Assert
            expression.Should().BeEquivalentTo(expectedExpression);
        }
Exemplo n.º 2
0
        public void ParameterPrefix_WhenCalled_ReturnsEquivalentSqlExpression()
        {
            // Arrange
            var expressions = new Oracle11Expressions();
            // Act
            var expression = expressions.ParameterPrefix();

            // Assert
            expression.Should().BeEquivalentTo(":");
        }
Exemplo n.º 3
0
        public void FromDummy_WhenCalled_ReturnsEquivalentSqlExpression()
        {
            // Arrange
            var expressions = new Oracle11Expressions();
            // Act
            var expression = expressions.FromDummy();

            // Assert
            expression.Should().BeEquivalentTo("FROM DUAL");
        }