Skip to content

Commit a94e381

Browse files
author
Amirhossein Beheshti
committed
test: remove obsolete test for SetSharp section handling
The test was verifying behavior that is no longer relevant as SetSharp section handling has been removed from the codebase.
1 parent e5e4eb6 commit a94e381

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

tests/SetSharp.Tests/ModelBuilder/ConfigurationModelBuilderTests.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,6 @@ public void BuildFrom_WithFlatPrimitives_ShouldCreateModelCorrectly()
3434
Assert.Equal("double", rootModel.Properties.First(p => p.PropertyName == "DefaultThreshold").PropertyType);
3535
}
3636

37-
[Fact]
38-
public void BuildFrom_WithSetSharpSection_ShouldIgnoreSetSharp()
39-
{
40-
// Arrange
41-
var builder = new ConfigurationModelBuilder();
42-
var root = new Dictionary<string, object>
43-
{
44-
{ "ConnectionString", "Server=.;Database=Test;"},
45-
{ "SetSharp", new Dictionary<string, object>() }
46-
};
47-
48-
// Act
49-
var result = builder.BuildFrom(root);
50-
51-
// Assert
52-
var rootModel = Assert.Single(result);
53-
Assert.Equal("RootOptions", rootModel.ClassName);
54-
Assert.Equal("", rootModel.SectionPath);
55-
56-
Assert.DoesNotContain(result, c => c.ClassName == "SetSharp");
57-
}
58-
5937
[Fact]
6038
public void BuildFrom_WithNestedObject_ShouldCreateSeparateClassModel()
6139
{

0 commit comments

Comments
 (0)