public void Addition_2IntergerNumbers() { int num1 = 2; int num2 = 3; var sum = Maths.Addition(num1, num2); Assert.AreEqual(sum, 5); }
public void Mathematics_Arithmetic_Addition() { Assert.IsTrue(Arithmetic.Addition(5, 6) == 11); }
/// <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; }