From: Red <96445749+TheShuEd@users.noreply.github.com> Date: Fri, 12 Sep 2025 10:17:29 +0000 (+0300) Subject: Stop microwaving! (#40132) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2820882754f8fa528c84fdc236c5207f72222240;p=space-station-14.git Stop microwaving! (#40132) * Create KillMicrowaveTest.cs * Update KillMicrowaveTest.cs * Update Content.IntegrationTests/Tests/Microwave/KillMicrowaveTest.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.IntegrationTests/Tests/Microwave/KillMicrowaveTest.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.IntegrationTests/Tests/Microwave/KillMicrowaveTest.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * documentation * Apply suggestions from code review --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.IntegrationTests/Tests/WizdenContentFreeze/WizdenContentFreeze.cs b/Content.IntegrationTests/Tests/WizdenContentFreeze/WizdenContentFreeze.cs new file mode 100644 index 0000000000..891525a25b --- /dev/null +++ b/Content.IntegrationTests/Tests/WizdenContentFreeze/WizdenContentFreeze.cs @@ -0,0 +1,41 @@ +using Content.Shared.Kitchen; + +namespace Content.IntegrationTests.Tests.WizdenContentFreeze; + +/// +/// These tests are limited to adding a specific type of content, essentially freezing it. If you are a fork developer, you may want to disable these tests. +/// +public sealed class WizdenContentFreeze +{ + /// + /// This freeze prohibits the addition of new microwave recipes. + /// The maintainers decided that the mechanics of cooking food in the microwave should be removed, + /// and all recipes should be ported to other cooking methods. + /// All added recipes essentially increase the technical debt of future cooking refactoring. + /// + /// https://github.com/space-wizards/space-station-14/issues/8524 + /// + [Test] + public async Task MicrowaveRecipesFreezeTest() + { + await using var pair = await PoolManager.GetServerClient(); + var server = pair.Server; + + var protoMan = server.ProtoMan; + + var recipesCount = protoMan.Count(); + var recipesLimit = 218; + + if (recipesCount > recipesLimit) + { + Assert.Fail($"PLEASE STOP ADDING NEW MICROWAVE RECIPES. MICROWAVE RECIPES ARE FROZEN AND NEED TO BE REPLACED WITH PROPER COOKING MECHANICS! See https://github.com/space-wizards/space-station-14/issues/8524. Keep it under {recipesLimit}. Current count: {recipesCount}"); + } + + if (recipesCount < recipesLimit) + { + Assert.Fail($"Oh, you deleted the microwave recipes? YOU ARE SO COOL! Please lower the number of recipes in MicrowaveRecipesFreezeTest from {recipesLimit} to {recipesCount} so that future contributors cannot add new recipes back."); + } + + await pair.CleanReturnAsync(); + } +}