diff --git a/SecureCoding.Test/SecureSerialization/Json/SecureNewtonsoftDeserializationUnitTests.cs b/SecureCoding.Test/SecureSerialization/Json/SecureNewtonsoftDeserializationUnitTests.cs index c96f615..c93a7e4 100644 --- a/SecureCoding.Test/SecureSerialization/Json/SecureNewtonsoftDeserializationUnitTests.cs +++ b/SecureCoding.Test/SecureSerialization/Json/SecureNewtonsoftDeserializationUnitTests.cs @@ -31,7 +31,6 @@ public void SimpleObjectDeserializationFailure() { // wrong arguments Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(null)); - Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(" ")); // wrong json string Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject("{")); @@ -78,7 +77,6 @@ public void SimpleObjectDeserializationWithSettingsFailure() // wrong arguments JsonSerializerSettings settings = new JsonSerializerSettings(); Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(null, settings)); - Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(" ", settings)); settings = new JsonSerializerSettings(); settings.TypeNameHandling = TypeNameHandling.All; @@ -116,7 +114,7 @@ public void ComplexObjectDeserializationFailure() var serializedComplexDummy = JsonConvert.SerializeObject(complexDummy, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.All }); Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(serializedComplexDummy, knownTypes)); - Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(string.Empty, knownTypes)); + Assert.ThrowsException(() => SecureNewtonsoftDeserialization.DeserializeObject(null, knownTypes)); } [TestMethod]