Remove minigame publish result dialogs
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using NUnit.Framework;
|
||||
|
||||
public sealed class MiniGamePublishPipelineTests
|
||||
{
|
||||
[Test]
|
||||
public void Run_DoesNotShowModalResultDialogs()
|
||||
{
|
||||
string source = File.ReadAllText("Assets/Editor/MiniGamePublishPipeline.cs");
|
||||
|
||||
Assert.IsFalse(
|
||||
Regex.IsMatch(source, @"EditorUtility\.DisplayDialog\([^\n;]*sb\.ToString\(\)[^\n;]*\)"),
|
||||
"Successful publish results should be written to the Unity log instead of a modal dialog.");
|
||||
Assert.IsFalse(
|
||||
Regex.IsMatch(source, @"EditorUtility\.DisplayDialog\([^\n;]*e\.Message[^\n;]*\)"),
|
||||
"Failed publish results should be written to the Unity log instead of a modal dialog.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user