src/GenFx.Wpf.Tests/ExecutionStateToStringConverterTest.cs
/// <summary>
/// Tests that the <see cref="ExecutionStateToStringConverter.Convert"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ExecutionStateToStringConverter_Convert()
        {
            ExecutionStateToStringConverter converter = new ExecutionStateToStringConverter();
            object result;
            foreach (ExecutionState state in Enum.GetValues(typeof(ExecutionState)))
            {
                result = converter.Convert(state, null, null, null);
                Assert.IsType<string>(result);
            }
            result = converter.Convert((ExecutionState)20, null, null, null);
            Assert.Null(result);
            result = converter.Convert(null, null, null, null);
            Assert.Null(result);
        }
[ Fact ] public void ExecutionStateToStringConverter_Convert ( ) { ExecutionStateToStringConverter converter = new ExecutionStateToStringConverter ( ) ; object result ; foreach ( ExecutionState state in Enum . GetValues ( typeof ( ExecutionState ) ) ) { result = converter . Convert ( state , null , null , null ) ; Assert . IsType < string > ( result ) ; } result = converter . Convert ( ( ExecutionState ) 20 , null , null , null ) ; Assert . Null ( result ) ; result = converter . Convert ( null , null , null , null ) ; Assert . Null ( result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .