public static void ToString___Should_return_friendly_string_representation_of_object___When_called()
        {
            // Arrange
            var systemUnderTest = new CalendarUnbounded();

            // Act
            var toString = systemUnderTest.ToString();

            // Assert
            toString.Should().Be("calendar unbounded");
        }
        public static void NotEqualsOperator___Should_return_false___When_both_sides_of_operator_are_null()
        {
            // Arrange
            CalendarUnbounded systemUnderTest1 = null;
            CalendarUnbounded systemUnderTest2 = null;

            // Act
            var result = systemUnderTest1 != systemUnderTest2;

            // Assert
            result.Should().BeFalse();
        }
        public static void CompareTo___Should_return_0___When_calling_non_typed_overload_and_other_object_is_not_null()
        {
            // Arrange
            var systemUnderTest1 = new CalendarUnbounded();
            var systemUnderTest2 = new CalendarUnbounded();

            // Act
            var result = systemUnderTest1.CompareTo((object)systemUnderTest2);

            // Assert
            result.Should().Be(0);
        }
        public static void CompareTo___Should_throw_ArgumentException___When_calling_non_typed_overload_and_other_object_is_null()
        {
            // Arrange
            var systemUnderTest1 = A.Dummy <CalendarUnbounded>();
            CalendarUnbounded systemUnderTest2 = null;

            // Act
            var ex = Record.Exception(() => systemUnderTest1.CompareTo((object)systemUnderTest2));

            // Assert
            ex.Should().BeOfType <ArgumentException>();
        }
        public static void GreaterThanOrEqualToOperator___Should_return_true___When_left_side_of_operator_is_not_null_and_right_side_is_null()
        {
            // Arrange
            var systemUnderTest1 = A.Dummy <CalendarUnbounded>();
            CalendarUnbounded systemUnderTest2 = null;

            // Act
            var result = systemUnderTest1 >= systemUnderTest2;

            // Assert
            result.Should().BeTrue();
        }
        public static void GreaterThanOrEqualToOperator___Should_return_true___When_both_sides_of_operator_are_null()
        {
            // Arrange
            CalendarUnbounded systemUnderTest1 = null;
            CalendarUnbounded systemUnderTest2 = null;

            // Act
            var result = systemUnderTest1 >= systemUnderTest2;

            // Assert
            result.Should().BeTrue();
        }
        public static void GreaterThanOperator___Should_return_false___When_left_side_of_operator_is_null_and_right_side_is_not_null()
        {
            // Arrange
            CalendarUnbounded systemUnderTest1 = null;
            var systemUnderTest2 = A.Dummy <CalendarUnbounded>();

            // Act
            var result = systemUnderTest1 > systemUnderTest2;

            // Assert
            result.Should().BeFalse();
        }
        public static void NotEqualsOperator___Should_return_true___When_one_side_of_operator_is_null_and_the_other_side_is_not_null()
        {
            // Arrange
            CalendarUnbounded systemUnderTest1 = null;
            var systemUnderTest2 = A.Dummy <CalendarUnbounded>();

            // Act
            var result1 = systemUnderTest1 != systemUnderTest2;
            var result2 = systemUnderTest2 != systemUnderTest1;

            // Assert
            result1.Should().BeTrue();
            result2.Should().BeTrue();
        }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarUnboundedReportingPeriod"/> class.
 /// </summary>
 /// <param name="start">The start of the reporting period.</param>
 /// <param name="end">The end of the reporting period.</param>
 public CalendarUnboundedReportingPeriod(
     CalendarUnbounded start,
     CalendarUnbounded end)
     : base(start, end)
 {
 }