您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
855 B

using NUnit.Framework;
using UnityEngine.Experimental.Perception.Randomization.Samplers;
namespace RandomizationTests.SamplerTests
{
[TestFixture]
public class SamplerUtilityTests
{
[Test]
public void SeedIteratedByChangingEitherBaseSeedOrIndex()
{
// Check if changing the index changes the generated random state
var iteratedIndex1 = SamplerUtility.IterateSeed(0, 0);
var iteratedIndex2 = SamplerUtility.IterateSeed(1, 0);
Assert.AreNotEqual(iteratedIndex1, iteratedIndex2);
// Check if changing the seed changes the generated random state
var iteratedSeed1 = SamplerUtility.IterateSeed(0, 0);
var iteratedSeed2 = SamplerUtility.IterateSeed(0, 1);
Assert.AreNotEqual(iteratedSeed1, iteratedSeed2);
}
}
}