Code cleanup for X10D.Tests

This commit is contained in:
Oliver Booth 2022-06-01 15:35:00 +01:00
parent e182b0f821
commit b5227f58d3
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
12 changed files with 23 additions and 22 deletions

View File

@ -56,7 +56,7 @@ public class Int16Tests
{
for (var i = 0; i < 8; i++)
{
var value = (short) System.Math.Pow(2, i);
var value = (short)System.Math.Pow(2, i);
Assert.AreEqual(value, value.RoundUpToPowerOf2());
}
}

View File

@ -39,7 +39,9 @@ public class UInt32Tests
{
const uint value = 284719; // 00000000 00000100 01011000 00101111
Assert.AreEqual(value, value.RotateRight(32));
} [TestMethod]
}
[TestMethod]
public void RoundUpToPowerOf2_ShouldReturnRoundedValue_GivenValue()
{
Assert.AreEqual(4U, 3U.RoundUpToPowerOf2());

View File

@ -1,5 +1,4 @@
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Text;
namespace X10D.Tests.Text;