src/GenFx.Tests/RandomUtilTest.cs
/// <summary>
/// Tests that the GetRandomValue method works correctly.
/// </summary>
Tests that the GetRandomValue method works correctly.
Tests that the GetRandomValue method works correctly .
[Fact]
        public void RandomUtil_GetRandomValue()
        {
            int num1 = RandomNumberService.Instance.GetRandomValue(100);
            int num2 = RandomNumberService.Instance.GetRandomValue(100);
            if (num1 == num2)
            {
                num2 = RandomNumberService.Instance.GetRandomValue(100);
            }
            Assert.NotEqual(num1, num2);
        }
[ Fact ] public void RandomUtil_GetRandomValue ( ) { int num1 = RandomNumberService . Instance . GetRandomValue ( 100 ) ; int num2 = RandomNumberService . Instance . GetRandomValue ( 100 ) ; if ( num1 == num2 ) { num2 = RandomNumberService . Instance . GetRandomValue ( 100 ) ; } Assert . NotEqual ( num1 , num2 ) ; }
Tests that the GetRandomValue method works correctly.
Tests that the GetRandomValue method works correctly .
// Try again for good metric.