Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
1.0 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Xunit;
namespace Squidex.Infrastructure.Queries
{
public class PascalCasePathConverterTests
{
[Fact]
public void Should_convert_property()
{
var source = ClrFilter.Eq("property", 1);
var result = PascalCasePathConverter<ClrValue>.Transform(source);
Assert.Equal("Property == 1", result!.ToString());
}
[Fact]
public void Should_convert_properties()
{
var source = ClrFilter.Eq("root.child", 1);
var result = PascalCasePathConverter<ClrValue>.Transform(source);
Assert.Equal("Root.Child == 1", result!.ToString());
}
}
}