概要
屬性
方法
Checkpoint(text: string,source: Instance,line: number):() |
Done():() |
isFeatureEnabled(name: string):boolean |
RegisterTest(testOptions: Dictionary):TestCase |
Run():() |
RunAsync():() |
TakeSnapshot(snapshotname: string,source: Instance):() |
活動
ServerCollectConditionalResult(condition: boolean,text: string,script: Instance,line: number):RBXScriptSignal |
ServerCollectResult(text: string,script: Instance,line: number):RBXScriptSignal |
API 參考
屬性
Is30FpsThrottleEnabled
方法
Check
Checkpoint
Done
TestService:Done():()
返回
()
範例程式碼
測試服務:完成
local TestService = game:GetService("TestService")
TestService:Done()Error
Fail
Message
RegisterTest
Require
Run
RunAsync
TestService:RunAsync():()
返回
()
TakeSnapshot
Warn
返回
()
範例程式碼
測試服務:警告
local TestService = game:GetService("TestService")
-- This will print a warning to the output
TestService:Warn(false, "這個動作無效")活動
ServerCollectConditionalResult