From 2478b73f522e7e7b60efc33ad0bad1bcffe7591a Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 16 Nov 2016 15:26:21 -0800 Subject: [PATCH] Cleanup diff by reorder --- .../ConfigurationBinderTests.cs | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/test/Microsoft.Extensions.Configuration.Binder.Test/ConfigurationBinderTests.cs b/test/Microsoft.Extensions.Configuration.Binder.Test/ConfigurationBinderTests.cs index 5865569..82de908 100644 --- a/test/Microsoft.Extensions.Configuration.Binder.Test/ConfigurationBinderTests.cs +++ b/test/Microsoft.Extensions.Configuration.Binder.Test/ConfigurationBinderTests.cs @@ -464,27 +464,6 @@ namespace Microsoft.Extensions.Configuration.Binder.Test Assert.Equal("Derived:Sup", options.Virtual); } - [Fact] - public void CanGetComplexOptionsWhichHasAlsoHasValue() - { - var dic = new Dictionary - { - {"obj", "whut" }, - {"obj:Integer", "-2"}, - {"obj:Boolean", "TRUe"}, - {"obj:Nested:Integer", "11"} - }; - var configurationBuilder = new ConfigurationBuilder(); - configurationBuilder.AddInMemoryCollection(dic); - var config = configurationBuilder.Build(); - - var options = config.GetSection("obj").Get(); - Assert.NotNull(options); - Assert.True(options.Boolean); - Assert.Equal(-2, options.Integer); - Assert.Equal(11, options.Nested.Integer); - } - [Fact] public void GetCanReadStaticProperty() { @@ -518,6 +497,27 @@ namespace Microsoft.Extensions.Configuration.Binder.Test Assert.Equal("other stuff", ComplexOptions.StaticProperty); } + [Fact] + public void CanGetComplexOptionsWhichHasAlsoHasValue() + { + var dic = new Dictionary + { + {"obj", "whut" }, + {"obj:Integer", "-2"}, + {"obj:Boolean", "TRUe"}, + {"obj:Nested:Integer", "11"} + }; + var configurationBuilder = new ConfigurationBuilder(); + configurationBuilder.AddInMemoryCollection(dic); + var config = configurationBuilder.Build(); + + var options = config.GetSection("obj").Get(); + Assert.NotNull(options); + Assert.True(options.Boolean); + Assert.Equal(-2, options.Integer); + Assert.Equal(11, options.Nested.Integer); + } + [Theory] [InlineData("ReadOnly")] [InlineData("PrivateSetter")]