From 461c92745d3974a24e2ac097696544393bc5d296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 3 Feb 2026 16:33:50 +0100 Subject: [PATCH] Fix assertion --- prompts/csharp-mstest.prompt.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prompts/csharp-mstest.prompt.md b/prompts/csharp-mstest.prompt.md index 77d903a6..9a27bda8 100644 --- a/prompts/csharp-mstest.prompt.md +++ b/prompts/csharp-mstest.prompt.md @@ -166,10 +166,14 @@ Assert.IsNegative(number); ### Type Assertions ```csharp -// Returns typed result for further assertions +// MSTest 3.x - uses out parameter Assert.IsInstanceOfType(obj, out var typed); typed.DoSomething(); +// MSTest 4.x - returns typed result directly +var typed = Assert.IsInstanceOfType(obj); +typed.DoSomething(); + Assert.IsNotInstanceOfType(obj); ```