Skip to content

Commit

Permalink
Removed obsolete SmartObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Apr 27, 2021
1 parent 8f5bcc1 commit 092b7b1
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 283 deletions.
137 changes: 0 additions & 137 deletions src/SmartFormat.Tests/Core/SmartObjectsTests.cs

This file was deleted.

4 changes: 2 additions & 2 deletions src/SmartFormat.Tests/Core/ValueTupleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ public void Nested_Scope()
var formatter = Smart.CreateDefaultSmartFormat();
formatter.Settings.ParseErrorAction = formatter.Settings.FormatErrorAction = ErrorAction.ThrowError;

var result = formatter.Format("{Member:choose(null):{Club.Name}|{Name}} - {Hello}", new SmartObjects(new object[] { clubOrMember, say }));
var result = formatter.Format("{Member:choose(null):{Club.Name}|{Name}} - {Hello}", (clubOrMember, say));
Assert.AreEqual($"{clubOrMember.Member.Name} - {say.Hello}", result);

result = formatter.Format("{Member:choose(null):{Club.Name}|{Name}} - {Hello}", new SmartObjects(new object[] { clubNoMember, say }));
result = formatter.Format("{Member:choose(null):{Club.Name}|{Name}} - {Hello}", (clubNoMember, say));
Assert.AreEqual($"{clubOrMember.Club.Name} - {say.Hello}", result);
}

Expand Down
61 changes: 0 additions & 61 deletions src/SmartFormat/Extensions/SmartObjectsSource.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/SmartFormat/Smart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public static SmartFormatter CreateDefaultSmartFormat()
(ISource) listFormatter, // ListFormatter MUST be first
new DictionarySource(formatter),
new ValueTupleSource(formatter),
new SmartObjectsSource(formatter),
new JsonSource(formatter),
new XmlSource(formatter),
new ReflectionSource(formatter),
Expand Down
82 changes: 0 additions & 82 deletions src/SmartFormat/SmartObjects.cs

This file was deleted.

0 comments on commit 092b7b1

Please sign in to comment.