示例#1
0
 public void TestGenerateMarkScheme()
 {
     CollectionAssert.AreEqual(new List <int> {
         2, 4, 5, 7, 8
     }, AnagramNumbers.Generate(123456789));
     CollectionAssert.AreEqual(new List <int> {
     }, AnagramNumbers.Generate(100));
     CollectionAssert.AreEqual(new List <int> {
     }, AnagramNumbers.Generate(1));
     CollectionAssert.AreEqual(new List <int> {
     }, AnagramNumbers.Generate(148258));
     CollectionAssert.AreEqual(new List <int> {
     }, AnagramNumbers.Generate(555));
     CollectionAssert.AreEqual(new List <int> {
         3
     }, AnagramNumbers.Generate(1035));
     CollectionAssert.AreEqual(new List <int> {
         3, 7
     }, AnagramNumbers.Generate(123876));
     CollectionAssert.AreEqual(new List <int> {
         2, 3, 4, 5, 6
     }, AnagramNumbers.Generate(142857));
     CollectionAssert.AreEqual(new List <int> {
         2
     }, AnagramNumbers.Generate(49271085));
     CollectionAssert.AreEqual(new List <int> {
         7
     }, AnagramNumbers.Generate(123450186));
 }
示例#2
0
 public void TestGenerateGiven()
 {
     CollectionAssert.AreEqual(new List <int> {
         2, 4, 5, 7, 8
     }, AnagramNumbers.Generate(123456789));
 }