public void Creation() { var TempCheckConstraint = new CreateFunctionCommandBuilder(ObjectPool); Assert.NotNull(TempCheckConstraint); Assert.Equal(40, TempCheckConstraint.Order); }
public void GetCommandsNoCurrentSource() { var TempCheckConstraint = new CreateFunctionCommandBuilder(ObjectPool); var Commands = TempCheckConstraint.GetCommands(DesiredSource, null).ToList(); Assert.Single(Commands); Assert.Equal("My Definition 2", Commands[0]); }
public void GetCommandsWithCurrentSource() { var TempCheckConstraint = new CreateFunctionCommandBuilder(ObjectPool); var Commands = TempCheckConstraint.GetCommands(DesiredSource, CurrentSource).ToList(); Assert.Equal(2, Commands.Count); Assert.Equal("DROP FUNCTION [dbo].[Function A]", Commands[0]); Assert.Equal("My Definition 2", Commands[1]); }