コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }