-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from skbkontur/deleteInvalidUris
delete invalid URIs
- Loading branch information
Showing
4 changed files
with
56 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,25 @@ public void TestSimpleWithEnumerable() | |
}); | ||
} | ||
|
||
[Test] | ||
public void TestInvalidUris() | ||
{ | ||
var (model, mappingForErrors) = Parse<PriceList>("simpleWithEnumerable_template.xlsx", "simpleWithEnumerable_targetWithInvalidUri.xlsx"); | ||
|
||
mappingForErrors["Type"].Should().Be("C3"); | ||
mappingForErrors["Items[0].Id"].Should().Be("B13"); | ||
mappingForErrors["Items[0].Name"].Should().Be("C13"); | ||
mappingForErrors["Items[1].Id"].Should().Be("B14"); | ||
mappingForErrors["Items[1].Name"].Should().Be("C14"); | ||
|
||
model.Type.Should().Be("[email protected]>"); | ||
model.Items.Should().BeEquivalentTo(new[] | ||
{ | ||
new Item {Id = "2311129000009", Name = "СЫР ГОЛЛАНДСКИЙ МОЖГА 1КГ"}, | ||
new Item {Id = "2311131000004", Name = "СЫР РОССИЙСКИЙ МОЖГА 1КГ"}, | ||
}); | ||
} | ||
|
||
[Test] | ||
public void TestLazyParse() | ||
{ | ||
|
Binary file added
BIN
+19.8 KB
...lateEngine.Tests/ObjectPrintingTests/Files/simpleWithEnumerable_targetWithInvalidUri.xlsx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters