Files
Nemera/tests/UnitTests/Nemera.Domain.SharedKernel.UnitTests/Common/Enums/Playback/PlaybackDeliveryShapeExtensionsTests.cs
T

47 lines
1.3 KiB
C#

#region ========================================================================= USING =====================================================================================
using Nemera.Domain.SharedKernel.Common.Enums.Playback;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Nemera.Domain.SharedKernel.UnitTests.Common.Enums.Playback;
/// <summary>
/// Contains unit tests for the <see cref="PlaybackDeliveryShapeExtensions"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class PlaybackDeliveryShapeExtensionsTests
{
[Fact]
public void IsSeekable_WhenShapeIsByteRangeSeekable_ShouldReturnTrue()
{
// Act
bool isSeekable = PlaybackDeliveryShape.ByteRangeSeekable.IsSeekable();
// Assert
Assert.True(isSeekable);
}
[Fact]
public void IsSeekable_WhenShapeIsTimeAddressedSegments_ShouldReturnTrue()
{
// Act
bool isSeekable = PlaybackDeliveryShape.TimeAddressedSegments.IsSeekable();
// Assert
Assert.True(isSeekable);
}
[Fact]
public void IsSeekable_WhenShapeIsUndefined_ShouldReturnFalse()
{
// Arrange
PlaybackDeliveryShape undefinedShape = (PlaybackDeliveryShape)99;
// Act
bool isSeekable = undefinedShape.IsSeekable();
// Assert
Assert.False(isSeekable);
}
}