From 41d329eb75e273061ae632f81d51fce44105fd32 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 4 Nov 2024 08:49:32 +0100 Subject: [PATCH] Fix camel case test (#86) --- .../Applications/when_converting_to_camel_case.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Specifications/Applications/when_converting_to_camel_case.cs b/Specifications/Applications/when_converting_to_camel_case.cs index 0864af5..00910fd 100644 --- a/Specifications/Applications/when_converting_to_camel_case.cs +++ b/Specifications/Applications/when_converting_to_camel_case.cs @@ -49,9 +49,5 @@ public static void ToCamelCaseTest(string expectedResult, string name) } [Fact] - public static void CamelCaseNullNameReturnsNull() - { - string name = null; - Assert.Null(name.ToCamelCase()); - } + public static void CamelCaseNullNameReturnsNull() => Assert.Null(((string)null).ToCamelCase()); } \ No newline at end of file