From 37bcfb780b468225cbbf4b0105a0a07cd002a75a Mon Sep 17 00:00:00 2001 From: ITR Date: Sat, 20 Jan 2024 03:12:37 +0100 Subject: [PATCH] Deleted obsolete tests --- Tomlet.Tests/ExceptionTests.cs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Tomlet.Tests/ExceptionTests.cs b/Tomlet.Tests/ExceptionTests.cs index 61ff2ce..6039da2 100644 --- a/Tomlet.Tests/ExceptionTests.cs +++ b/Tomlet.Tests/ExceptionTests.cs @@ -89,13 +89,6 @@ public void DatesWithUnnecessarySeparatorThrow() => [Fact] public void ImplyingAValueIsATableViaDottedKeyInADocumentWhenItIsNotThrows() => AssertThrows(() => GetDocument(DeliberatelyIncorrectTestResources.TomlBadDottedKeyExample)); - - [Fact] - public void ImplyingAValueIsATableViaDottedKeyWhenItIsNotThrows() - { - var doc = GetDocument(TestResources.ArrayOfEmptyStringTestInput); - AssertThrows(() => doc.Put("Array.a", "foo")); - } [Fact] public void BadEnumValueThrows() => @@ -211,20 +204,7 @@ public void GettingAValueWhichDoesntExistThrows() => public void MismatchingTypesInDeserializationThrow() => AssertThrows(() => TomletMain.To("MyFloat = \"hello\"")); - [Fact] - public void AskingATableForTheValueAssociatedWithAnInvalidKeyThrows() => - AssertThrows(() => GetDocument("").GetBoolean("\"I am invalid'")); - [Fact] public void SettingAnInlineCommentToIncludeANewlineThrows() => AssertThrows(() => TomlDocument.CreateEmpty().Comments.InlineComment = "hello\nworld"); - - [Fact] - public void BadKeysThrow() - { - var doc = GetDocument(""); - - //A key with both quotes - AssertThrows(() => doc.GetLong("\"hello'")); - } } \ No newline at end of file