src/GenFx.Tests/StringUtilTest.cs
/// <summary>
/// Tests that the GetFormattedString method works correctly.
/// </summary>
Tests that the GetFormattedString method works correctly.
Tests that the GetFormattedString method works correctly .
[Fact]
        public void StringUtil_GetFormattedString()
        {
            Type stringUtilType = typeof(GeneticAlgorithm).Assembly.GetType("GenFx.StringUtil");
            MethodInfo method = stringUtilType.GetMethod("GetFormattedString", BindingFlags.Static | BindingFlags.NonPublic);
            object result = method.Invoke(null, new object[] { @"Test\n{0}\t{1}.", new string[] { "1", "2" } });
            Assert.Equal("Test\n1\t2.", result);
        }
[ Fact ] public void StringUtil_GetFormattedString ( ) { Type stringUtilType = typeof ( GeneticAlgorithm ) . Assembly . GetType ( " " ) ; MethodInfo method = stringUtilType . GetMethod ( " " , BindingFlags . Static | BindingFlags . NonPublic ) ; object result = method . Invoke ( null , new object [ ] { @"Test\n{0}\t{1}." , new string [ ] { " " , " " } } ) ; Assert . Equal ( " \n \t " , result ) ; }
Tests that the GetFormattedString method works correctly.
Tests that the GetFormattedString method works correctly .