public void GetCommandsNoCurrentSource() { var TempCheckConstraint = new CreateViewCommandBuilder(ObjectPool); var Commands = TempCheckConstraint.GetCommands(DesiredSource, null).ToList(); Assert.Single(Commands); Assert.Equal("My Definition 2", Commands[0]); }
public void GetCommandsWithCurrentSource() { var TempCheckConstraint = new CreateViewCommandBuilder(ObjectPool); var Commands = TempCheckConstraint.GetCommands(DesiredSource, CurrentSource).ToList(); Assert.Equal(2, Commands.Count); Assert.Equal("DROP VIEW [dbo].[View A]", Commands[0]); Assert.Equal("My Definition 2", Commands[1]); }