diff --git a/test/TestConsole/Configuration/StaticConfigurationScope.cs b/test/TestConsole/Configuration/StaticConfigurationScope.cs deleted file mode 100644 index e2f237ba..00000000 --- a/test/TestConsole/Configuration/StaticConfigurationScope.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Neptuo.Configuration; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TestConsole.Configuration -{ - class StaticConfigurationScope : IConfigurationScope - { - public IConfigurationStorage GetStorage() - { - return new ConfigurationStorage(); - } - - class ConfigurationStorage : IConfigurationStorage - { - public bool TryGetValue(string key, out string value) - { - value = "True"; - return true; - } - } - } -} diff --git a/test/TestConsole/Configuration/TestConfiguration.cs b/test/TestConsole/Configuration/TestConfiguration.cs deleted file mode 100644 index 4b8ffca1..00000000 --- a/test/TestConsole/Configuration/TestConfiguration.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Neptuo.Configuration; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TestConsole.Configuration -{ - class TestConfiguration - { - public static void Test() - { - IConfigurationScopeRegistry registry = new ConfigurationScopeRegistry(); - registry.MapScope("Static", new StaticConfigurationScope()); - - ConfigurationBase configuration = new ConfigurationBase(registry, new EmptyConfigurationScope()); - configuration.MapProperty(); - - ModuleConfiguration module = new ModuleConfiguration(configuration); - Console.WriteLine(module.IsDebug); - } - } - - class IsDebugProperty : BoolConfigurationProperty - { - public IsDebugProperty() - : base(false, "Static") - { } - } - - class ModuleConfiguration - { - private IConfiguration configuration; - - public bool IsDebug - { - get { return configuration.GetProperty().Value; } - } - - public ModuleConfiguration(IConfiguration configuration) - { - this.configuration = configuration; - } - } -} diff --git a/test/TestConsole/TestConsole.csproj b/test/TestConsole/TestConsole.csproj index 97df3e13..bbc7017f 100644 --- a/test/TestConsole/TestConsole.csproj +++ b/test/TestConsole/TestConsole.csproj @@ -102,8 +102,6 @@ - -