src/GenFx.Wpf.Tests/EnumViewModelConverterTest.cs
/// <summary>
/// Tests that the <see cref="EnumViewModelConverter.ConvertBack"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void EnumViewModelConverter_ConvertBack()
        {
            EnumViewModelConverter converter = new EnumViewModelConverter();
            object result;
            EnumViewModel viewModel = new EnumViewModel(FitnessType.Raw, "Test");
            result = converter.ConvertBack(viewModel, null, null, null);
            Assert.Equal(viewModel.Value, result);
            result = converter.ConvertBack(null, null, null, null);
            Assert.Null(result);
        }
[ Fact ] public void EnumViewModelConverter_ConvertBack ( ) { EnumViewModelConverter converter = new EnumViewModelConverter ( ) ; object result ; EnumViewModel viewModel = new EnumViewModel ( FitnessType . Raw , " " ) ; result = converter . ConvertBack ( viewModel , null , null , null ) ; Assert . Equal ( viewModel . Value , result ) ; result = converter . ConvertBack ( null , null , null , null ) ; Assert . Null ( result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .