public void TestCompareTrue() { Assert.IsTrue(AnagramNumbers.Compare(54321, 12345)); Assert.IsTrue(AnagramNumbers.Compare(54321, 54312)); Assert.IsTrue(AnagramNumbers.Compare(543212, 123245)); Assert.IsTrue(AnagramNumbers.Compare(54321233, 12324335)); }
public void TestCompareFalse() { Assert.IsFalse(AnagramNumbers.Compare(12345, 32144)); Assert.IsFalse(AnagramNumbers.Compare(123456, 32145)); }