Beispiel #1
0
        public void IsNotBase64_HandlesType_ReturnsIsEndsWithType()
        {
            var expected = enDecisionType.IsNotBase64;
            //------------Setup for test--------------------------
            var isEndsWith = new IsNotBase64();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(expected, isEndsWith.HandlesType());
        }
        public void IsNotBase64_Invoke_ItemsEqual_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotBase64();

            string[] cols = new string[2];
            cols[0] = "aGVsbG8=";
            //------------Execute Test---------------------------
            bool result = endsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Beispiel #3
0
        public void IsNotBase64_Invoke_NotEqualItems_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotBase64();
            var cols     = new string[2];

            cols[0] = "aGVsbG8ASS@";
            //------------Execute Test---------------------------
            var result = endsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
Beispiel #4
0
        public void IsNotBase64_Invoke_EmptyColumns_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotBase64();
            var cols     = new string[1];

            cols[0] = null;
            //------------Execute Test---------------------------
            var result = endsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }