コード例 #1
0
        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");
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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);
        }
コード例 #4
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>();
        }
コード例 #5
0
        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();
        }
コード例 #6
0
        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();
        }
コード例 #7
0
        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();
        }
コード例 #8
0
        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();
        }
コード例 #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)
 {
 }