NewTestPlatform() public static method

public static NewTestPlatform ( string testPlatformName, string testPlatformId, string testPlatformDesctiption, string testPlatformOS, string testPlatformVersion, string testPlatformArchitecture, string testPlatformLanguage ) : bool
testPlatformName string
testPlatformId string
testPlatformDesctiption string
testPlatformOS string
testPlatformVersion string
testPlatformArchitecture string
testPlatformLanguage string
return bool
Ejemplo n.º 1
0
        internal override void Execute()
        {
            var cmdlet = (NewPlatformCmdletBase)Cmdlet;

            bool result =
                TmxHelper.NewTestPlatform(
                    cmdlet.Name,
                    cmdlet.Id,
                    cmdlet.Description,
                    cmdlet.OperatingSystem,
                    cmdlet.Version,
                    cmdlet.Architecture,
                    cmdlet.Language);

            if (result)
            {
                cmdlet.WriteObject(cmdlet, TestData.CurrentTestPlatform);
            }
            else
            {
                cmdlet.WriteError(
                    cmdlet,
                    "Couldn't create a test platform",
                    "CreatingTestPlatform",
                    ErrorCategory.InvalidArgument,
                    true);
            }
        }