Klasa silnika
TestService
*Ta zawartość została przetłumaczona przy użyciu narzędzi AI (w wersji beta) i może zawierać błędy. Aby wyświetlić tę stronę w języku angielskim, kliknij tutaj.
Podsumowanie
Właściwości
Metody
Checkpoint(text: string,source: Instance,line: number):() |
Done():() |
isFeatureEnabled(name: string):boolean |
RegisterTest(testOptions: Dictionary):TestCase |
Run():() |
RunAsync():() |
TakeSnapshot(snapshotname: string,source: Instance):() |
Zdarzenia
ServerCollectConditionalResult(condition: boolean,text: string,script: Instance,line: number):RBXScriptSignal |
ServerCollectResult(text: string,script: Instance,line: number):RBXScriptSignal |
Materiały referencyjne dotyczące interfejsów API
Właściwości
Is30FpsThrottleEnabled
Metody
Check
Zwroty
()
Przykłady kodu
TestService:Sprawdź
local TestService = game:GetService("TestService")
TestService:Check(false, "przykład")Checkpoint
Done
TestService:Done():()
Zwroty
()
Przykłady kodu
TestService:Zrobione
local TestService = game:GetService("TestService")
TestService:Done()Error
Fail
Message
RegisterTest
Parametry
Zwroty
TestCase
Require
Zwroty
()
Przykłady kodu
TestService:Require
local TestService = game:GetService("TestService")
TestService:Require(false, "example")Run
RunAsync
TestService:RunAsync():()
Zwroty
()
TakeSnapshot
Warn
Zwroty
()
Przykłady kodu
TestService:Warn
local TestService = game:GetService("TestService")
TestService:Warn(false, "ta akcja jest nieprawidłowa")Zdarzenia
ServerCollectConditionalResult