Implementation of ISelfSerialize
This commit is contained in:
@@ -45,6 +45,15 @@ namespace Content.Tests.Shared.Chemistry
|
||||
Assert.AreEqual(expected, $"{result}");
|
||||
}
|
||||
|
||||
[Test]
|
||||
[TestCase("1.005", "1")]
|
||||
[TestCase("0.999", "1")]
|
||||
public void ReagentUnitStringTests(string value, string expected)
|
||||
{
|
||||
var result = ReagentUnit.New(value);
|
||||
Assert.AreEqual(expected, $"{result}");
|
||||
}
|
||||
|
||||
[Test]
|
||||
[TestCase(1.001f, 1.001f, "2")]
|
||||
[TestCase(1.001f, 1.004f, "2")]
|
||||
|
||||
Reference in New Issue
Block a user