From 385f0188d4c81478849056dfc2a9216cb13accf2 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Wed, 9 Aug 2023 11:38:26 +0200 Subject: [PATCH] fix csharp testcode generator --- .../languages/csharp/test/CsharpRequestTestRenderer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/test/CsharpRequestTestRenderer.kt b/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/test/CsharpRequestTestRenderer.kt index 3c14ba72..4eb099da 100644 --- a/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/test/CsharpRequestTestRenderer.kt +++ b/languages/csharp/src/main/kotlin/io/vrap/codegen/languages/csharp/test/CsharpRequestTestRenderer.kt @@ -131,8 +131,8 @@ class CsharpRequestTestRenderer constructor(override val vrapTypeProvider: VrapT is BooleanType -> true is IntegerType -> r.nextInt(1, 10) is NumberType -> when (type.format) { - NumberFormat.DOUBLE -> r.nextDouble().toString() + "m" - NumberFormat.FLOAT -> r.nextFloat().toString() + "m" + NumberFormat.DOUBLE -> r.nextDouble().toString() + NumberFormat.FLOAT -> r.nextFloat().toString() else -> r.nextInt(1, 10) } else -> name