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);
            }
        }