Portable Generator Rework (#19302)

This commit is contained in:
Pieter-Jan Briers
2023-08-25 20:40:42 +02:00
committed by GitHub
parent 50828363fe
commit bf16698efa
73 changed files with 1933 additions and 473 deletions

View File

@@ -175,5 +175,15 @@ namespace Content.Tests.Shared.Chemistry
Assert.That(parameter.Equals(comparison), Is.EqualTo(comparison.Equals(parameter)));
Assert.That(comparison.Equals(parameter), Is.EqualTo(expected));
}
[Test]
[TestCase(1.001f, "1.01")]
[TestCase(2f, "2")]
[TestCase(2.5f, "2.5")]
public void NewCeilingTest(float value, string expected)
{
var result = FixedPoint2.NewCeiling(value);
Assert.That($"{result}", Is.EqualTo(expected));
}
}
}