mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 23:11:10 +00:00
Renames project paths from Lumina to Nemera
This commit is contained in:
1 parent
ce6fddb4c9
commit
0f659a4877
6450 files changed
No files matched your search
@@ -0,0 +1,40 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Infrastructure.Core.Time;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.UnitTests.Core.Time;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="DateTimeProvider"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class DateTimeProviderTests
|
||||
{
|
||||
private readonly DateTimeProvider _sut = new();
|
||||
|
||||
[Fact]
|
||||
public void UtcNow_WhenCalled_ShouldReturnCurrentUtcTime()
|
||||
{
|
||||
// Arrange
|
||||
DateTime before = DateTime.UtcNow;
|
||||
|
||||
// Act
|
||||
DateTime result = _sut.UtcNow;
|
||||
|
||||
// Assert
|
||||
DateTime after = DateTime.UtcNow;
|
||||
Assert.True(result >= before && result <= after);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void UtcNow_WhenCalled_ShouldReturnUtcKind()
|
||||
{
|
||||
// Act
|
||||
DateTime result = _sut.UtcNow;
|
||||
|
||||
// Assert
|
||||
Assert.Equal(DateTimeKind.Utc, result.Kind);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user