-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unity Technologies
committed
Apr 3, 2019
1 parent
659abec
commit de28455
Showing
5 changed files
with
112 additions
and
37 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
Unity.Entities.Hybrid.Tests/DefaultWorldInitializationTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections; | ||
using NUnit.Framework; | ||
using UnityEditor; | ||
using UnityEditor.TestTools; | ||
using UnityEngine; | ||
using UnityEngine.TestTools; | ||
|
||
namespace Unity.Entities.Tests | ||
{ | ||
public class DefaultWorldInitializationTests | ||
{ | ||
|
||
[SetUp] | ||
public void Setup() | ||
{ | ||
} | ||
// TODO: [case 1040539] Remove this when entering playmode in an editmode test works in 2018.2+ | ||
#if UNITY_2018_1_OR_NEWER && !UNITY_2018_2_OR_NEWER | ||
[UnityTest] | ||
public IEnumerator Initialize_WhenEnteringPlaymode_ShouldLogNothing() | ||
{ | ||
EditorApplication.isPlaying = true; | ||
yield return null; | ||
|
||
|
||
LogAssert.NoUnexpectedReceived(); | ||
} | ||
#endif | ||
[TearDown] | ||
public void TearDown() | ||
{ | ||
EditorApplication.isPlaying = false; | ||
|
||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Unity.Entities.Hybrid.Tests/DefaultWorldInitializationTests.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters