Skip to content

Commit

Permalink
fix(test): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Apr 22, 2024
1 parent 5e890a6 commit 4b06174
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/LadybugDisplaySchema.Tests/Model/FromJsonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ public void VisualizationDataWithStringValuesTest()
"2.6",
"0.6",
"-4",
"21"
"21",
"N/A"
};

var vData = new VisualizationData(data, null);
var legend = vData.LegendParameters;
Assert.IsTrue(legend.OrdinalDictionary == null);
Assert.IsTrue(legend.HasNoneColor(out _));
Assert.IsTrue(legend.OrdinalDictionary != null);
Assert.IsTrue(legend.HasNaNColor(out _));

data = new List<string>()
{
Expand Down

0 comments on commit 4b06174

Please sign in to comment.