コード例 #1
0
        public void ShouldNotCallDatabaseEngineExecuteIfInstructionsListIsEmpty()
        {
            instructionParser.Parse(Arg.Any <string>()).Returns(new List <IScriptInstruction>());

            database.Execute(string.Empty);

            instructionParser.Received(1).Parse(Arg.Any <string>());

            databaseEngine.DidNotReceiveWithAnyArgs().Execute(Arg.Any <ICollection <IScriptInstruction> >());
        }