public void Test_EnsureInitialized() { MySettings mySettings = new MySettings(); mySettings.Filter = null; mySettings.Presentation = null; mySettings.Calculation = null; mySettings.DataProvider = null; mySettings.EnsureInitialized(); Assert.IsNotNull(mySettings.Filter); Assert.IsNotNull(mySettings.Presentation); Assert.IsNotNull(mySettings.Calculation); Assert.IsNotNull(mySettings.DataProvider); Assert.IsNotNull(mySettings.Filter.Taxa.TaxonIds); Assert.IsNotNull(mySettings.Filter.Spatial.Polygons); Assert.IsNotNull(mySettings.DataProvider.DataProviders.DataProvidersGuids); }