Esempio n. 1
0
        public void it_should_acknowledge_two_objects_to_be_different()
        {
            var leftOperand = new OperationInfo<string>(Method, Url, "/", new Regex(".*"), "test");

            leftOperand.Equals(null).Should().BeFalse();
            leftOperand.Equals(String.Empty).Should().BeFalse();
        }
Esempio n. 2
0
        public void it_should_acknowledge_two_operations_as_equal()
        {
            var leftOperand = new OperationInfo<string>(Method, Url, "/", new Regex(".*"), "test");
            var rightOperand = new OperationInfo<string>(Method, Url, "/", new Regex(".*"), "test");

            (leftOperand == rightOperand).Should().BeTrue();
            leftOperand.Equals(leftOperand).Should().BeTrue();
        }