示例#1
0
        public void GetEncryptionKeyTest()
        {
            var testData = new List <Tuple <BigInteger, BigInteger, BigInteger> >()
            {
                new Tuple <BigInteger, BigInteger, BigInteger>(
                    17807724,
                    5764801,
                    14897079)
            };

            foreach (var testExample in testData)
            {
                var actual = DoorHelper.GetEncryptionKey(testExample.Item1, testExample.Item2);
                Assert.Equal(testExample.Item3, actual);
            }
        }
示例#2
0
 private static BigInteger GetDay25Part1()
 {
     var(item1, item2) = GetDay25Input();
     return(DoorHelper.GetEncryptionKey(item1, item2));
 }