Skip to content

Commit fa1bc97

Browse files
committed
Remove a unnecessary test case.
1 parent 358ca4c commit fa1bc97

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/Resources/Resources.Test/Models.ResourceGroups/GalleryTemplatesClientTests.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -123,39 +123,6 @@ public void ResolvesDuplicatedDynamicParameterName()
123123
Assert.Equal(int.Parse(value.MaxLength), validateLengthAttribute.MaxLength);
124124
}
125125

126-
[Fact]
127-
[Trait(Category.AcceptanceType, Category.CheckIn)]
128-
public void ResolvesDuplicatedDynamicParameterNameSubstring()
129-
{
130-
string[] parameters = { "Username", "Location", "Mode" };
131-
string[] parameterSetNames = { "__AllParameterSets" };
132-
string key = "user";
133-
TemplateFileParameterV1 value = new TemplateFileParameterV1()
134-
{
135-
AllowedValues = new List<object>() { "Mode1", "Mode2", "Mode3" },
136-
MaxLength = "5",
137-
MinLength = "1",
138-
Type = "bool"
139-
};
140-
KeyValuePair<string, TemplateFileParameterV1> parameter = new KeyValuePair<string, TemplateFileParameterV1>(key, value);
141-
142-
RuntimeDefinedParameter dynamicParameter = TemplateUtility.ConstructDynamicParameter(parameters, parameter);
143-
144-
Assert.Equal(key + "FromTemplate", dynamicParameter.Name);
145-
Assert.Equal(value.DefaultValue, dynamicParameter.Value);
146-
Assert.Equal(typeof(bool), dynamicParameter.ParameterType);
147-
Assert.Equal(2, dynamicParameter.Attributes.Count);
148-
149-
ParameterAttribute parameterAttribute = (ParameterAttribute)dynamicParameter.Attributes[0];
150-
Assert.True(parameterAttribute.Mandatory);
151-
Assert.True(parameterAttribute.ValueFromPipelineByPropertyName);
152-
Assert.Equal(parameterSetNames[0], parameterAttribute.ParameterSetName);
153-
154-
ValidateLengthAttribute validateLengthAttribute = (ValidateLengthAttribute)dynamicParameter.Attributes[1];
155-
Assert.Equal(int.Parse(value.MinLength), validateLengthAttribute.MinLength);
156-
Assert.Equal(int.Parse(value.MaxLength), validateLengthAttribute.MaxLength);
157-
}
158-
159126
[Fact]
160127
[Trait(Category.AcceptanceType, Category.CheckIn)]
161128
public void ResolvesDuplicatedDynamicParameterNameCaseInsensitive()

0 commit comments

Comments
 (0)