|
16 | 16 | using Akka.TestKit;
|
17 | 17 | using Xunit;
|
18 | 18 | using Xunit.Abstractions;
|
| 19 | +using FluentAssertions; |
19 | 20 |
|
20 | 21 | namespace Akka.Tests.Configuration
|
21 | 22 | {
|
@@ -75,23 +76,23 @@ public void Deserializes_hocon_configuration_from_net_config_file()
|
75 | 76 | }
|
76 | 77 | #endif
|
77 | 78 |
|
78 |
| - [Fact] |
79 |
| - public void Can_create_config_from_source_object() |
80 |
| - { |
81 |
| - var source = new MyObjectConfig |
82 |
| - { |
83 |
| - StringProperty = "aaa", |
84 |
| - BoolProperty = true, |
85 |
| - IntegerArray = new[] {1, 2, 3, 4} |
86 |
| - }; |
| 79 | + //[Fact] |
| 80 | + //public void Can_create_config_from_source_object() |
| 81 | + //{ |
| 82 | + // var source = new MyObjectConfig |
| 83 | + // { |
| 84 | + // StringProperty = "aaa", |
| 85 | + // BoolProperty = true, |
| 86 | + // IntegerArray = new[] {1, 2, 3, 4} |
| 87 | + // }; |
87 | 88 |
|
88 |
| - var config = ConfigurationFactory.FromObject(source); |
| 89 | + // var config = ConfigurationFactory.FromObject(source); |
89 | 90 |
|
90 |
| - Assert.Equal("aaa", config.GetString("StringProperty")); |
91 |
| - Assert.True(config.GetBoolean("BoolProperty")); |
| 91 | + // Assert.Equal("aaa", config.GetString("StringProperty")); |
| 92 | + // Assert.True(config.GetBoolean("BoolProperty")); |
92 | 93 |
|
93 |
| - Assert.Equal(new[] {1, 2, 3, 4}, config.GetIntList("IntegerArray").ToArray()); |
94 |
| - } |
| 94 | + // Assert.Equal(new[] {1, 2, 3, 4}, config.GetIntList("IntegerArray").ToArray()); |
| 95 | + //} |
95 | 96 |
|
96 | 97 | [Fact]
|
97 | 98 | public void Can_merge_objects()
|
@@ -176,7 +177,7 @@ public class MyObjectConfig
|
176 | 177 | public void Parsing_empty_string_should_produce_empty_hocon_root()
|
177 | 178 | {
|
178 | 179 | var value = Parser.Parse(string.Empty, null).Value;
|
179 |
| - value.IsEmpty.ShouldBeTrue(); |
| 180 | + value.Type.Should().Be(HoconType.Empty); |
180 | 181 | }
|
181 | 182 |
|
182 | 183 | [Fact]
|
|
0 commit comments