af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
// <copyright file="NamingOptionsTest.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Jellyfin.Naming.Tests.Common
|
|
{
|
|
using Emby.Naming.Common;
|
|
using Xunit;
|
|
|
|
public class NamingOptionsTest
|
|
{
|
|
[Fact]
|
|
public void TestNamingOptionsCompile()
|
|
{
|
|
var options = new NamingOptions();
|
|
|
|
Assert.NotEmpty(options.CleanDateTimeRegexes);
|
|
Assert.NotEmpty(options.CleanStringRegexes);
|
|
}
|
|
|
|
[Fact]
|
|
public void TestNamingOptionsEpisodeExpressions()
|
|
{
|
|
var exp = new EpisodeExpression(string.Empty);
|
|
|
|
Assert.False(exp.IsOptimistic);
|
|
exp.IsOptimistic = true;
|
|
Assert.True(exp.IsOptimistic);
|
|
|
|
Assert.Equal(string.Empty, exp.Expression);
|
|
Assert.NotNull(exp.Regex);
|
|
exp.Expression = "test";
|
|
Assert.Equal("test", exp.Expression);
|
|
Assert.NotNull(exp.Regex);
|
|
}
|
|
}
|
|
}
|