示例#1
0
        public void ProgramMetadata_ReplaceReleaseDatesMetadataWithNull_ResultIsNotNull()
        {
            var metadata = new ProgramMetadata();

            metadata.ReplaceReleaseDates(null);

            Assert.NotNull(metadata.ReleaseDates);
        }
示例#2
0
        public void ProgramMetadata_ReplaceReleaseDatesMetadata_ReplacesMetadata()
        {
            var metadata = new ProgramMetadata();

            var dates = new[]
            {
                new MetadataDateTimeBuilder(1999).WithMonth(4).Build(),
                new MetadataDateTimeBuilder(1989).WithMonth(8).Build()
            };

            metadata.ReplaceReleaseDates(dates);

            Assert.Equal(dates, metadata.ReleaseDates);
        }