public void RemoveModel_ObjectNotPresent_ReturnsFalse() { // arrange var workflowPipelineArgs = WorkflowPipelineArgsFactory.CreateWorkflowPipelineArgs(); var sut = new PopulateScribanMailActionModelArgs(workflowPipelineArgs); // act var result = sut.RemoveModel("key"); // assert Assert.That(result, Is.False); }
public void RemoveModel_KeyIsInvalid_ReturnsFalse(string key) { // arrange var workflowPipelineArgs = WorkflowPipelineArgsFactory.CreateWorkflowPipelineArgs(); var sut = new PopulateScribanMailActionModelArgs(workflowPipelineArgs); sut.AddModel("key", "value"); // act var result = sut.RemoveModel(key); // assert Assert.That(result, Is.False); }
public void RemoveModel_ObjectIsPresent_RemovesObject() { // arrange var workflowPipelineArgs = WorkflowPipelineArgsFactory.CreateWorkflowPipelineArgs(); var sut = new PopulateScribanMailActionModelArgs(workflowPipelineArgs); sut.AddModel("key", "value"); // act sut.RemoveModel("key"); var exists = sut.ModelContains("key"); // assert Assert.That(exists, Is.False); }