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.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7cddb2952e1d0d946ad2f6feb0522f94
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user