public void WithOutputs_ShouldReturnTemplateWithoutAddingToOutputsProperty_WhenNullPassed() { // Arrange var template = new TestTemplate(); // Act var result = template.WithOutputs(null); // Assert result.Should().BeSameAs(template); result.Outputs.Should().BeEmpty(); }
public void WithOutputs_WithParamsOutputs_ShouldAddOutputsToOutputsPropertyAndReturnTemplate() { // Arrange var template = new TestTemplate(); var output = Output.String("key", "value"); // Act var result = template.WithOutputs(output); // Assert result.Should().BeSameAs(template); result.Outputs.Should().HaveCount(1); result.Outputs.First().Should().BeSameAs(output); }