public void Loading_Configuration_From_NotExistingPath_Will_Return_Null() { var logger = Substitute.For <ILogger>(); var configurationLoader = new Engine.Configuration.ConfigurationLoader(logger); configurationLoader .LoadConfiguration <TestConfig.Test>("FileDoesNotExist") .Should() .BeNull(); }
public void Loading_Configuration_From_ExistingPath_Will_Return_Null() { var logger = Substitute.For <ILogger>(); var configurationLoader = new Engine.Configuration.ConfigurationLoader(logger); using var testConfig = new TestConfig(); configurationLoader .LoadConfiguration <TestConfig.Test>(testConfig.TempFileName) .Should() .NotBeNull(); }