public void UpdateJObjectBasedOnParameterType_WithValidInputOfTypeString_ReturnsUpdatedJObject() { var result = DeploymentParametersHelper.UpdateJObjectBasedOnParameterType(ParameterType.String, "test", JObject.Parse("{}")); result.ToString().Should().BeEquivalentToIgnoringNewlines(@"{ ""value"": ""test"" }"); }
public void UpdateJObjectBasedOnParameterType_WithInvalidInput_ThrowsException() { Action action = () => DeploymentParametersHelper.UpdateJObjectBasedOnParameterType(ParameterType.Int, "test", JObject.Parse("{}")); action.Should().Throw <Exception>(); }