From d228ae2b9465bb4381a4139028164b9269eba70e Mon Sep 17 00:00:00 2001 From: vlad dalevich Date: Fri, 4 Jul 2025 00:24:16 +0700 Subject: [PATCH] fix test --- .../CalculateDepthTestNew.cs | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 T2dMath.Pipeline.Test/CalculateDepthTestNew.cs diff --git a/T2dMath.Pipeline.Test/CalculateDepthTestNew.cs b/T2dMath.Pipeline.Test/CalculateDepthTestNew.cs deleted file mode 100644 index 75cc150..0000000 --- a/T2dMath.Pipeline.Test/CalculateDepthTestNew.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using T2dMath.Pipeline; -using Xunit; - -namespace T2dMath.Tests { - public class PipelinesTests { - [Fact] - public void CalculateDepth_CalculatesDepthWithFixZaboy() { - // arrange - double[] time_surface = new double[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; - double[] block_height = new double[] { 0, 0.1, 0.2, 0.21, 0.2, 0.19, 0.2, 0.21, 0.2, 0.19 }; - double[] weight = new double[] { 0, 5, 10, 10, 10, 5, 0, 0, 0, 0 }; - double[] depth = new double[] { 0, 0.5, 1.0, 1.5, 2.0, 2.1, 2.2, 2.2, 2.2, 2.2 }; - double[] fstop = null; - double[] length_drill_pipe = new double[] { 1.5, 1.5 }; // итого 3.0 - double length_tool = 0.5; - int min_time = 1000; - - // act - Pipelines.CalculateDepth( - time_surface, - block_height, - weight, - min_time, - ref fstop, - length_drill_pipe, - length_tool, - ref depth, - out var stop_intervals, - out var kmlt, - out var kmove - ); - - // assert - Assert.NotNull(depth); - Assert.Equal(time_surface.Length, depth.Length); - - double expected_zaboy = length_drill_pipe[0] + length_drill_pipe[1] + length_tool; - double max_depth = depth[^1]; - - Assert.True(max_depth <= expected_zaboy + 0.1, $"Глубина должна быть меньше или равна забою (ожидалось ≈ {expected_zaboy})"); - Assert.NotNull(kmlt); - Assert.NotNull(kmove); - } - } -}