As you can see in the unit test below, I'm basically checking if all properties have default values. Is there a more fluent way in FluentAssertions to do so that I'm not aware of?
This test aims to check whether it throws or not when given no additional information.
public class OhlcvBuilderTests
{
// Happy path
[Fact]
public void Build_ShouldBeConstructed_WhenGivenEmptyInput()
{
// Arrange
var ohlcvBuilder = new OhlcvBuilder();
var expectedOhlcv = new
{
Date = DateTimeOffset.MinValue,
Open = 0,
High = 0,
Low = 0,
Close = 0,
Volume = 0
};
// Act
var ohlcv = ohlcvBuilder.Build();
// Assert
ohlcv.Should().BeEquivalentTo(expectedOhlcv);
}
}