예제 #1
0
        public void ProgramMetadata_ReplaceBuildDatesMetadataWithNull_ResultIsNotNull()
        {
            var metadata = new ProgramMetadata();

            metadata.ReplaceBuildDates(null);

            Assert.NotNull(metadata.BuildDates);
        }
예제 #2
0
        public void ProgramMetadata_ReplaceBuildDatesMetadata_ReplacesMetadata()
        {
            var metadata = new ProgramMetadata();

            var dates = new[]
            {
                new MetadataDateTimeBuilder(2001).WithMonth(2).Build(),
                new MetadataDateTimeBuilder(1984).WithMonth(6).Build()
            };

            metadata.ReplaceBuildDates(dates);

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