コード例 #1
0
ファイル: IsNotBinaryTests.cs プロジェクト: tuga1975/Warewolf
        public void IsNotBinary_HandlesType_ReturnsIsEndsWithType()
        {
            var expected = enDecisionType.IsNotBinary;
            //------------Setup for test--------------------------
            var isEndsWith = new IsNotBinary();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(expected, isEndsWith.HandlesType());
        }
コード例 #2
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);
        }
コード例 #3
0
ファイル: IsNotBinaryTests.cs プロジェクト: tuga1975/Warewolf
        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);
        }
コード例 #4
0
        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);
        }