public void IsNotEmail_HandlesType_ReturnsIsNotEmailType() { var decisionType = enDecisionType.IsNotEmail; //------------Setup for test-------------------------- var isNotEmail = new IsNotEmail(); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual(decisionType, isNotEmail.HandlesType()); }
public void IsNotEmail_Invoke_IsNotEmail_ReturnsFalse() { //------------Setup for test-------------------------- var isNotEmail = new IsNotEmail(); var cols = new string[2]; cols[0] = "*****@*****.**"; //------------Execute Test--------------------------- var result = isNotEmail.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void GivenSomeString_IsNotEmail_Invoke_ReturnsTrue() { //------------Setup for test-------------------------- var isNotEmail = new IsNotEmail(); var cols = new string[2]; cols[0] = "something"; //------------Execute Test--------------------------- var result = isNotEmail.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }