stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using StellaOps.Provenance;
|
||||
using StellaOps.TestKit;
|
||||
using Xunit;
|
||||
|
||||
namespace StellaOps.Provenance.Tests;
|
||||
|
||||
public sealed partial class DocumentValueTests
|
||||
{
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void AsHelpers_ReturnExpectedValues()
|
||||
{
|
||||
Assert.Equal("alpha", "alpha".AsString());
|
||||
Assert.Equal(7, 7.AsInt32());
|
||||
Assert.Equal(9L, 9L.AsInt64());
|
||||
Assert.Equal(1.5, 1.5.AsDouble());
|
||||
Assert.True(true.AsBoolean());
|
||||
Assert.Equal(string.Empty, ((object?)null).AsString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user