public void TestClone() { var filters = new QuickFilters { new QuickFilter { MatchType = FilterMatchType.WildcardFilter } }; var clone = filters.Clone(); clone.Should().NotBeNull(); clone.Should().NotBeSameAs(filters); clone.Count.Should().Be(1); clone[0].Should().NotBeNull(); clone[0].Should().NotBeSameAs(filters[0]); clone[0].MatchType.Should().Be(filters[0].MatchType); }
public void TestClone() { var filters = new QuickFilters { new QuickFilter { MatchType = FilterMatchType.WildcardFilter }, }; filters.TimeFilter.SpecialInterval = SpecialDateTimeInterval.Today; var clone = filters.Clone(); clone.Should().NotBeNull(); clone.Should().NotBeSameAs(filters); clone.Count.Should().Be(1); clone[0].Should().NotBeNull(); clone[0].Should().NotBeSameAs(filters[0]); clone[0].MatchType.Should().Be(filters[0].MatchType); clone.TimeFilter.Should().NotBeNull(); clone.TimeFilter.SpecialInterval.Should().Be(SpecialDateTimeInterval.Today); }