Implementation of ISelfSerialize

This commit is contained in:
PrPleGoo
2020-04-08 19:07:33 +02:00
parent 070ab51754
commit a484b6fd52
3 changed files with 41 additions and 9 deletions

View File

@@ -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")]