planetarium / mimir

A backend service that provides 9c-related utility APIs.
https://nine-chronicles.dev/
GNU Affero General Public License v3.0
4 stars 22 forks source link

write unit test for `Lib9c.GraphQL.Extensions.CurrencyTickerStringExtensions` #511

Open boscohyun opened 1 day ago

boscohyun commented 1 day ago

Currently, there is not unit test for the CurrencyTickerStringExtensions. We should write that.

Make CurrencyTickerStringExtensionsTest.cs

path: Lib9c.GraphQL.Tests/Extensions/CurrencyTickerStringExtensionsTest.cs

Implement a first unit test

[Fact]
public void ToCurrency_ShouldConvertCorrectly()
{
    var currencyTicker = "SOME_CURRENCY_TICKER";
    // ...
}