Tmx.TmxHelper.NewTestPlatform C# (CSharp) Метод

NewTestPlatform() публичный статический Метод

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
Результат bool
        public static bool NewTestPlatform(
            string testPlatformName,
            string testPlatformId,
            string testPlatformDesctiption,
            string testPlatformOS,
            string testPlatformVersion,
            string testPlatformArchitecture,
            string testPlatformLanguage)
        {
            return TestData.AddTestPlatform(
                    testPlatformName,
                    testPlatformId,
                    testPlatformDesctiption,
                    testPlatformOS,
                    testPlatformVersion,
                    testPlatformArchitecture,
                    testPlatformLanguage);
        }
        

Usage Example

Пример #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);
            }
        }