Example #1
0
        public async Task ScheduleToPlainTextStringWithThreeItemsInListReturnsFormattedStringTest()
        {
            // arrange
            var scheduleDiff = new ScheduleDiff[]
            {
                new ScheduleDiff
                {
                    SingleShift = _singleShiftA,
                    Status      = ScheduleStatus.Added,
                },
                new ScheduleDiff
                {
                    SingleShift = _singleShiftB,
                    Status      = ScheduleStatus.Removed,
                },
                new ScheduleDiff
                {
                    SingleShift = _singleShiftC,
                    Status      = ScheduleStatus.Unchanged,
                },
            };

            // act
            var result = Sut.ScheduleToPlainTextString(scheduleDiff);

            // assert
            await Verifier.Verify(result);
        }
Example #2
0
        public void ScheduleToPlainTextStringWithEmptyListReturnsEmptyStringTest()
        {
            // arrange
            ScheduleDiff[] scheduleDiff = Array.Empty <ScheduleDiff>();

            // act
            var result = Sut.ScheduleToPlainTextString(scheduleDiff);

            // assert
            Assert.Empty(result);
        }
Example #3
0
        public void ScheduleToHtmlStringWithEmptyListReturnsEmptyStringTest()
        {
            // arrange
            ScheduleDiff[] scheduleDiff = Array.Empty <ScheduleDiff>();

            // act
            var result = Sut.ScheduleToHtmlString(scheduleDiff);

            // assert
            _ = result.Should().BeEmpty();
        }