public void ProgramMetadata_ReplaceBuildDatesMetadataWithNull_ResultIsNotNull() { var metadata = new ProgramMetadata(); metadata.ReplaceBuildDates(null); Assert.NotNull(metadata.BuildDates); }
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); }