Exemplo n.º 1
0
        public void IsBinary_Invoke_DoesEndWith_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isBinary = new IsBinary();

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

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
            result = isBinary.Invoke(new [] { string.Empty });
            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void IsBinary_Invoke_DoesntEndWith_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var isBinary = new IsBinary();

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

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