public void New_CmdletInputTypeAttribute_AcceptsNullCLRType() { var attribute = new CmdletInputTypeAttribute((Type)null); Assert.False(attribute.IsCLRType); Assert.Equal("None", attribute.Name); }
public void New_CmdletInputTypeAttribute_AcceptsCLRType() { var attribute = new CmdletInputTypeAttribute(typeof(string)); Assert.True(attribute.IsCLRType); Assert.Equal(typeof(string).Name, attribute.Name); }
public void New_CmdletInputTypeAttribute_String(string parameter, string expected) { var attribute = new CmdletInputTypeAttribute(parameter); Assert.False(attribute.IsCLRType); Assert.Null(attribute.Type); Assert.Equal(expected, attribute.Name); }