public void Convert_ShouldReturnCollapsed_ForSchemaTypeWithoutBoundOperations()
        {
            var schemaType = new SchemaTypeModel
            {
                Name            = "Type1",
                IsSelected      = false,
                BoundOperations = new List <BoundOperationModel>()
            };

            var result = new SchemaTypeModelToVisibilityConverter()
                         .Convert(schemaType, typeof(Visibility), null, CultureInfo.CurrentCulture);

            result.Should()
            .Be(Visibility.Collapsed);
        }
        public void Convert_ShouldReturnVisible_ForSchemaTypeWithBoundOperations()
        {
            var schemaType = new SchemaTypeModel {
                Name = "Type1", IsSelected = false, BoundOperations = new List <BoundOperationModel>
                {
                    new BoundOperationModel
                    {
                        IsSelected = true,
                        Name       = "TestOperation(Type1)"
                    }
                }
            };

            var result = new SchemaTypeModelToVisibilityConverter()
                         .Convert(schemaType, typeof(Visibility), null, CultureInfo.CurrentCulture);

            result.Should()
            .Be(Visibility.Visible);
        }