public void TestConstruction() { var config = new DataSourcesWidgetConfiguration(); config.ShowFileName.Should().BeTrue(); config.ShowFileSize.Should().BeFalse(); config.ShowCreated.Should().BeFalse(); config.ShowLastModified.Should().BeFalse(); }
public void TestClone([Values(true, false)] bool showFileName, [Values(true, false)] bool showFileSize, [Values(true, false)] bool showCreated, [Values(true, false)] bool showLastModified) { var config = new DataSourcesWidgetConfiguration { ShowFileName = showFileName, ShowFileSize = showFileSize, ShowCreated = showCreated, ShowLastModified = showLastModified }; var actualConfig = config.Clone(); actualConfig.ShowFileName.Should().Be(showFileName); actualConfig.ShowFileSize.Should().Be(showFileSize); actualConfig.ShowCreated.Should().Be(showCreated); actualConfig.ShowLastModified.Should().Be(showLastModified); }