mirror of https://github.com/oliverbooth/X10D
Code cleanup for X10D.Tests
This commit is contained in:
parent
e182b0f821
commit
b5227f58d3
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System.Text;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using X10D.Text;
|
||||
|
||||
namespace X10D.Tests.Text;
|
||||
|
|
Loading…
Reference in New Issue