FunctionalTest

顯示已棄用項目

*此內容是使用 AI(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")

活動