コード例 #1
0
        public void Addition_2IntergerNumbers()
        {
            int num1 = 2;
            int num2 = 3;

            var sum = Maths.Addition(num1, num2);

            Assert.AreEqual(sum, 5);
        }
コード例 #2
0
 public void Mathematics_Arithmetic_Addition()
 {
     Assert.IsTrue(Arithmetic.Addition(5, 6) == 11);
 }
コード例 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="encryptionKey"></param>
 /// <param name="urlEncode"></param>
 public CaesarEncryptor(string encryptionKey = "", bool urlEncode = true)
     : this()
 {
     Key          = Arithmetic.Addition(encryptionKey.TryParseDecimal(), this.Key.TryParseInt16()).ToShort().ToString();
     EncodeForURL = urlEncode;
 }