Skip to content

Commit

Permalink
Deleted obsolete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ITR13 committed Jan 20, 2024
1 parent 32737d2 commit 37bcfb7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Tomlet.Tests/ExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ public class ExceptionTests
[Fact]
public void ImplyingAValueIsATableViaDottedKeyInADocumentWhenItIsNotThrows() =>
AssertThrows<TomlKeyRedefinitionException>(() => GetDocument(DeliberatelyIncorrectTestResources.TomlBadDottedKeyExample));

[Fact]
public void ImplyingAValueIsATableViaDottedKeyWhenItIsNotThrows()
{
var doc = GetDocument(TestResources.ArrayOfEmptyStringTestInput);
AssertThrows<TomlDottedKeyException>(() => doc.Put("Array.a", "foo"));
}

[Fact]
public void BadEnumValueThrows() =>
Expand Down Expand Up @@ -211,20 +204,7 @@ public void ImplyingAValueIsATableViaDottedKeyWhenItIsNotThrows()
public void MismatchingTypesInDeserializationThrow() =>
AssertThrows<TomlPropertyTypeMismatchException>(() => TomletMain.To<SimplePropertyTestClass>("MyFloat = \"hello\""));

[Fact]
public void AskingATableForTheValueAssociatedWithAnInvalidKeyThrows() =>
AssertThrows<InvalidTomlKeyException>(() => GetDocument("").GetBoolean("\"I am invalid'"));

[Fact]
public void SettingAnInlineCommentToIncludeANewlineThrows() =>
AssertThrows<TomlNewlineInInlineCommentException>(() => TomlDocument.CreateEmpty().Comments.InlineComment = "hello\nworld");

[Fact]
public void BadKeysThrow()
{
var doc = GetDocument("");

//A key with both quotes
AssertThrows<InvalidTomlKeyException>(() => doc.GetLong("\"hello'"));
}
}

0 comments on commit 37bcfb7

Please sign in to comment.