mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 23:01:10 +00:00
26 lines
839 B
C#
26 lines
839 B
C#
#region ========================================================================= USING =====================================================================================
|
|
using Nemera.Domain.SharedKernel.Common.Enums.BookLibrary;
|
|
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Linq;
|
|
#endregion
|
|
|
|
namespace Nemera.Domain.SharedKernel.UnitTests.Common.Enums.BookLibrary;
|
|
|
|
/// <summary>
|
|
/// Contains unit tests for the <see cref="BookRatingSource"/> enumeration.
|
|
/// </summary>
|
|
[ExcludeFromCodeCoverage]
|
|
public class BookRatingSourceTests
|
|
{
|
|
[Fact]
|
|
public void BookRatingSource_WhenEnumeratingValues_ShouldHaveNoDuplicateValues()
|
|
{
|
|
// Act
|
|
BookRatingSource[] values = Enum.GetValues<BookRatingSource>();
|
|
|
|
// Assert
|
|
Assert.Equal(values.Length, values.Distinct().Count());
|
|
}
|
|
}
|