FunctionalTest

显示已弃用

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处

已弃用

概要

方法

属性

Description

读取并联

功能测试的描述。

方法

Error

()

参数

message: string
默认值:""

返回

()

Failed

()

向输出打印红色消息,前缀为 "TestService:" .

参数

message: string
默认值:""

返回

()

Pass

()

参数

message: string
默认值:""

返回

()

Passed

()

参数

message: string
默认值:""

返回

()

Warn

()

如果条件为真,打印;否则打印警告。

参数

message: string
默认值:""

返回

()

代码示例

This code would print Warning: this action is invalid to the output, in yellow text.

FunctionalTest:Warn1

local TestService = game:GetService("TestService")
TestService:Warn(false, "this action is invalid")

活动