示例#1
0
        public void IsNotBinary_Invoke_EmptyColumns_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotBinary();
            var cols     = new string[1];

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

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
示例#2
0
        public void IsNotBinary_Invoke_NotEqualItems_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotBinary();
            var cols     = new string[2];

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

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
        public void IsNotBinary_Invoke_ItemsEqual_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotBinary();

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

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