public GetValueOrDefault ( string value, string defaultValue ) : string | ||
value | string | |
defaultValue | string | |
리턴 | string |
private void DefaultBevatControllerRandomHoofdletterGeeftValueMetDefaultPart() { var builder = new ControllerValueBuilder(); var result = builder.GetValueOrDefault("aValueController", "api/[ContRolLEr]"); Assert.Equal("api/aValue", result); }
private void DefaultZonderControllerGeeftDefault() { var builder = new ControllerValueBuilder(); var result = builder.GetValueOrDefault("aValueController", "aDefaultValue"); Assert.Equal("aDefaultValue", result); }
private void DefaultIsControllerHoofdletterGeeftValue() { var builder = new ControllerValueBuilder(); var result = builder.GetValueOrDefault("aValueController", "[Controller]"); Assert.Equal("aValue", result); }