public void ClearingFilterNullifingAllAttributes() { _serviceUnderTest.Category = "Some category"; _serviceUnderTest.End = TimeSpan.Parse("6:00"); _serviceUnderTest.Start = TimeSpan.Parse("9:00"); _serviceUnderTest.Title = "SomeTitle"; _serviceUnderTest.ClearFilter(); List <object> actual = new List <object> { _serviceUnderTest.Category, _serviceUnderTest.End, _serviceUnderTest.Start, _serviceUnderTest.Title }; Assert.Collection(actual, s => Assert.Null(s), s => Assert.Equal(default(TimeSpan), (TimeSpan)s), s => Assert.Equal(default(TimeSpan), (TimeSpan)s), s => Assert.Null(s)); }