public void Should_be_possible_to_compare_two_integers_using_bitwise_and_operator()
        {
            IntegerComparator comparator = new IntegerComparator();

            bool compareResult = comparator.Compare("6", "4", OperationEnumeration.bitwiseand);

            Assert.IsTrue(compareResult, "the value is not expected for less than equal operation");
        }
        public void Should_be_possible_to_compare_two_integers_using_equals_operator()
        {
            IntegerComparator comparator = new IntegerComparator();

            bool compareResult = comparator.Compare("10", "10", OperationEnumeration.equals);

            Assert.IsTrue(compareResult, "the value is not expected for equals operation");

            compareResult = comparator.Compare("180", "1536", OperationEnumeration.equals);
            Assert.IsFalse(compareResult, "the value is not expected for equals operation");
        }
        public void Should_be_possible_to_compare_two_integers_using_less_than_or_equals_operator()
        {
            IntegerComparator comparator = new IntegerComparator();

            bool compareResult = comparator.Compare("9", "10", OperationEnumeration.lessthanorequal);

            Assert.IsTrue(compareResult, "the value is not expected for less than equal operation");

            compareResult = comparator.Compare("96", "96", OperationEnumeration.lessthanorequal);
            Assert.IsTrue(compareResult, "the value is not expected for less than or equal operation");
        }
        public void Should_be_possible_to_compare_two_integers_using_greater_than_or_equals_operator()
        {
            IntegerComparator comparator = new IntegerComparator();

            bool compareResult = comparator.Compare("181", "180", OperationEnumeration.greaterthanorequal);

            Assert.IsTrue(compareResult, "the value is not expected for greater than or equal operation");

            compareResult = comparator.Compare("8", "8", OperationEnumeration.greaterthanorequal);
            Assert.IsTrue(compareResult, "the value is not expected for greater than or equal operation");
        }
 public void Should_not_possible_to_compare_elements_with_null_value()
 {
     IntegerComparator comparator = new IntegerComparator();
     bool compareResult           = comparator.Compare("180", null, OperationEnumeration.greaterthan);
 }
 public void Should_not_possible_to_compare_elements_that_is_not_integer_with_any_operator()
 {
     IntegerComparator comparator = new IntegerComparator();
     bool compareResult           = comparator.Compare("Is not Integer", "10", OperationEnumeration.lessthan);
 }
        public void Should_be_possible_to_compare_two_integers_using_bitwise_and_operator_2()
        {
            var comparisionResult = new IntegerComparator().Compare("519", "2", OperationEnumeration.bitwiseand);

            Assert.IsTrue(comparisionResult);
        }