diff --git a/.editorconfig b/.editorconfig index a8b773fed..1c1b1008f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,6 +3,7 @@ charset = utf-8 indent_style = space indent_size = 2 trim_trailing_whitespace = true +insert_final_newline = true [*.md] max_line_length = 150 @@ -15,7 +16,9 @@ max_line_length = 150 csharp_indent_block_contents = true # IDE0161 Convert to file-scoped namespace -csharp_style_namespace_declarations= file_scoped:suggestion +csharp_style_namespace_declarations = file_scoped:suggestion +csharp_using_directive_placement = outside_namespace:warning +dotnet_style_namespace_match_folder = false:none # CA1051: Do not declare visible instance fields dotnet_diagnostic.CA1051.severity = silent @@ -25,7 +28,7 @@ dotnet_diagnostic.CA1303.severity = none # CA1720: Identifier contains type name dotnet_diagnostic.CA1720.severity = silent -dotnet_diagnostic.IDE0090.severity= suggestion +dotnet_diagnostic.IDE0090.severity = suggestion dotnet_diagnostic.SA1413.severity = silent dotnet_diagnostic.SA1200.severity = silent @@ -49,7 +52,6 @@ dotnet_diagnostic.SA1117.severity = none # SA1118: Parameter should not span multiple lines dotnet_diagnostic.SA1118.severity = silent -csharp_using_directive_placement = outside_namespace:warning # SA1202: Elements should be ordered by access dotnet_diagnostic.SA1202.severity = silent @@ -79,15 +81,15 @@ dotnet_diagnostic.SA1602.severity = silent dotnet_diagnostic.SA1633.severity = none # Misc IDE -dotnet_diagnostic.IDE0055.severity=suggestion -dotnet_diagnostic.IDE0059.severity=suggestion -dotnet_diagnostic.IDE0060.severity=suggestion -dotnet_diagnostic.IDE0062.severity=suggestion -dotnet_diagnostic.IDE0063.severity=suggestion -dotnet_diagnostic.IDE0065.severity=suggestion -dotnet_diagnostic.IDE0066.severity=suggestion -dotnet_diagnostic.IDE0071.severity=suggestion -dotnet_diagnostic.IDE0047.severity=suggestion +dotnet_diagnostic.IDE0055.severity = suggestion +dotnet_diagnostic.IDE0059.severity = suggestion +dotnet_diagnostic.IDE0060.severity = suggestion +dotnet_diagnostic.IDE0062.severity = suggestion +dotnet_diagnostic.IDE0063.severity = suggestion +dotnet_diagnostic.IDE0065.severity = suggestion +dotnet_diagnostic.IDE0066.severity = suggestion +dotnet_diagnostic.IDE0071.severity = suggestion +dotnet_diagnostic.IDE0047.severity = suggestion csharp_indent_labels = no_change csharp_prefer_simple_using_statement = true:suggestion csharp_prefer_braces = true:suggestion @@ -137,6 +139,8 @@ csharp_style_prefer_primary_constructors = true:suggestion # IDE0058: Expression value is never used dotnet_diagnostic.IDE0058.severity = none +dotnet_diagnostic.IDE0077.severity = warning +dotnet_diagnostic.IDE0100.severity = suggestion [*.{cs,vb}] tab_width = 4 @@ -216,6 +220,5 @@ dotnet_style_qualification_for_field = false:silent dotnet_style_qualification_for_property = false:silent dotnet_style_qualification_for_method = false:silent dotnet_style_qualification_for_event = false:silent -dotnet_style_namespace_match_folder= false:silent dotnet_style_allow_multiple_blank_lines_experimental = false:suggestion dotnet_style_allow_statement_immediately_after_block_experimental = false:suggestion diff --git a/.github/workflows/build-indicators.yml b/.github/workflows/build-indicators.yml index a763d4cde..04f3137d3 100644 --- a/.github/workflows/build-indicators.yml +++ b/.github/workflows/build-indicators.yml @@ -62,7 +62,7 @@ jobs: --logger trx --results-directory ./test-other - - name: Update tests summary + - name: Post tests summary uses: bibipkins/dotnet-test-reporter@v1.3.3 if: ${{ github.event_name == 'pull_request' && (success() || (failure() && (steps.test-library.conclusion == 'failure' || steps.test-other.conclusion == 'failure'))) }} with: @@ -72,3 +72,11 @@ jobs: coverage-path: ./test-indicators/**/coverage.cobertura.xml coverage-type: cobertura coverage-threshold: 95 + + - name: Post coverage to Codacy + uses: codacy/codacy-coverage-reporter-action@v1 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: ./test-indicators/**/coverage.cobertura.xml + # or a comma-separated list for multiple reports + # coverage-reports: , diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 05ceb88fa..f6b1a19d1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -3,7 +3,7 @@ name: Deploy website on: [workflow_dispatch] concurrency: - group: cloudflare-pages + group: docs-website env: JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest environment: - name: cloudflare-pages + name: docs-website steps: - name: Checkout source diff --git a/.github/workflows/semantic-pr-linter.yml b/.github/workflows/semantic-pr-linter.yml index c98c1bca8..a4113f57f 100644 --- a/.github/workflows/semantic-pr-linter.yml +++ b/.github/workflows/semantic-pr-linter.yml @@ -12,7 +12,7 @@ permissions: jobs: main: - name: Validate PR title + name: validate PR title runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 @@ -52,12 +52,12 @@ jobs: It looks like your proposed **_Pull request title_** needs to be adjusted. - >🚩 **ERROR:** ${{ steps.lint_pr_title.outputs.error_message }} + >🚩 **Error** » ${{ steps.lint_pr_title.outputs.error_message }} #### Pull request title naming convention Our PR title name taxonomy is `type: Subject`, where **type** is typically - *feat*, *fix*, or *chore* and **subject** is a noun that starts with a capitalized letter. + *feat*, *fix*, or *chore*, and **subject** is a phrase (proper noun) that starts with a capitalized letter. The *chore* type usually has a subject that starts with an action verb like *Add* or *Update*. Examples: `feat: Admin portal login`, `fix: Divide by zero bug in SMA`, and `chore: Update user docs`. See the [Conventional Commits specification](https://www.conventionalcommits.org) for more information. diff --git a/docs/GemFile.lock b/docs/GemFile.lock index eaea2c8b8..e85c82d9d 100644 --- a/docs/GemFile.lock +++ b/docs/GemFile.lock @@ -18,10 +18,10 @@ GEM minitest (>= 5.1) mutex_m tzinfo (~> 2.0) - addressable (2.8.5) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) base64 (0.2.0) - bigdecimal (3.1.4) + bigdecimal (3.1.5) coffee-script (2.4.1) coffee-script-source execjs @@ -41,7 +41,7 @@ GEM ethon (0.16.0) ffi (>= 1.15.0) execjs (2.9.1) - faraday (2.7.11) + faraday (2.8.1) base64 faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) @@ -227,7 +227,7 @@ GEM gemoji (~> 3.0) html-pipeline (~> 2.2) jekyll (>= 3.0, < 5.0) - json (2.6.3) + json (2.7.1) json-minify (0.0.3) json (> 0) kramdown (2.3.2) @@ -245,9 +245,9 @@ GEM jekyll-seo-tag (~> 2.1) minitest (5.20.0) mutex_m (0.2.0) - nokogiri (1.15.4-x64-mingw-ucrt) + nokogiri (1.15.5-x64-mingw-ucrt) racc (~> 1.4) - nokogiri (1.15.4-x86_64-linux) + nokogiri (1.15.5-x86_64-linux) racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) @@ -277,7 +277,7 @@ GEM unf (~> 0.1.4) terminal-table (1.8.0) unicode-display_width (~> 1.1, >= 1.1.1) - typhoeus (1.4.0) + typhoeus (1.4.1) ethon (>= 0.9.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -285,8 +285,8 @@ GEM execjs (>= 0.3.0, < 3) unf (0.1.4) unf_ext - unf_ext (0.0.9) - unf_ext (0.0.9-x64-mingw-ucrt) + unf_ext (0.0.9.1) + unf_ext (0.0.9.1-x64-mingw-ucrt) unicode-display_width (1.8.0) wdm (0.1.1) webrick (1.8.1) diff --git a/src/GlobalSuppressions.cs b/src/GlobalSuppressions.cs index 456f0a6d4..2d7951d4f 100644 --- a/src/GlobalSuppressions.cs +++ b/src/GlobalSuppressions.cs @@ -1,8 +1,3 @@ -// This file is used by Code Analysis to maintain SuppressMessage -// attributes that are applied to this project. -// Project-level suppressions either have no target or are given -// a specific target and scoped to a namespace, type, member, etc. - using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage( diff --git a/src/Indicators.csproj b/src/Indicators.csproj index ae189d86d..3c9961ff0 100644 --- a/src/Indicators.csproj +++ b/src/Indicators.csproj @@ -36,7 +36,6 @@ README.md https://github.com/DaveSkender/Stock.Indicators/releases Apache-2.0 - icon.png true @@ -60,19 +59,15 @@ True - True - True - True - diff --git a/src/_common/Enums.cs b/src/_common/Enums.cs index 300efadef..ba68801c3 100644 --- a/src/_common/Enums.cs +++ b/src/_common/Enums.cs @@ -72,4 +72,4 @@ public enum SyncType AppendOnly, RemoveOnly, FullMatch -} \ No newline at end of file +} diff --git a/src/_common/Math/NullMath.cs b/src/_common/Math/NullMath.cs index 0d8bd539c..71aad8c1c 100644 --- a/src/_common/Math/NullMath.cs +++ b/src/_common/Math/NullMath.cs @@ -28,17 +28,15 @@ public static decimal Round(this decimal value, int digits) => Math.Round(value, digits); public static double Null2NaN(this double? value) - => (value is null) - ? double.NaN - : (double)value; + => value ?? double.NaN; public static double? NaN2Null(this double? value) - => (value is double and double.NaN) + => (value is not null and double.NaN) ? null : value; public static double? NaN2Null(this double value) - => (value is double and double.NaN) + => double.IsNaN(value) ? null : value; } diff --git a/src/_common/Math/Numerix.cs b/src/_common/Math/Numerix.cs index 559125598..6d0e98ad2 100644 --- a/src/_common/Math/Numerix.cs +++ b/src/_common/Math/Numerix.cs @@ -72,8 +72,7 @@ public static double Slope(double[] x, double[] y) // least squares method double sumSqX = 0; - double sumSqY = 0; - double sumSqXY = 0; + double sumSqXy = 0; for (int i = 0; i < length; i++) { @@ -81,11 +80,10 @@ public static double Slope(double[] x, double[] y) double devY = y[i] - avgY; sumSqX += devX * devX; - sumSqY += devY * devY; - sumSqXY += devX * devY; + sumSqXy += devX * devY; } - double slope = sumSqXY / sumSqX; + double slope = sumSqXy / sumSqX; return slope; } diff --git a/src/_common/Quotes/Quote.Aggregates.cs b/src/_common/Quotes/Quote.Aggregates.cs index 821d4ea7e..e917c9af8 100644 --- a/src/_common/Quotes/Quote.Aggregates.cs +++ b/src/_common/Quotes/Quote.Aggregates.cs @@ -45,12 +45,6 @@ public static IEnumerable Aggregate( TimeSpan timeSpan) where TQuote : IQuote { - // handle no quotes scenario - if (quotes == null || !quotes.Any()) - { - return new List(); - } - if (timeSpan <= TimeSpan.Zero) { throw new ArgumentOutOfRangeException(nameof(timeSpan), timeSpan, diff --git a/src/_common/Quotes/Quote.Exceptions.cs b/src/_common/Quotes/Quote.Exceptions.cs index 07f3a7a08..23cec65b1 100644 --- a/src/_common/Quotes/Quote.Exceptions.cs +++ b/src/_common/Quotes/Quote.Exceptions.cs @@ -1,6 +1,3 @@ -using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; - namespace Skender.Stock.Indicators; public class InvalidQuotesException : ArgumentOutOfRangeException diff --git a/src/_common/Quotes/Quote.Validation.cs b/src/_common/Quotes/Quote.Validation.cs index f709741e2..16d256d9d 100644 --- a/src/_common/Quotes/Quote.Validation.cs +++ b/src/_common/Quotes/Quote.Validation.cs @@ -17,10 +17,8 @@ public static IEnumerable Validate( // check for duplicates DateTime lastDate = DateTime.MinValue; - for (int i = 0; i < quotesList.Count; i++) + foreach (var q in quotesList) { - TQuote q = quotesList[i]; - if (lastDate == q.Date) { throw new InvalidQuotesException( diff --git a/src/_common/Results/Result.Utilities.cs b/src/_common/Results/Result.Utilities.cs index 03a57743b..eca3f3ac3 100644 --- a/src/_common/Results/Result.Utilities.cs +++ b/src/_common/Results/Result.Utilities.cs @@ -18,7 +18,7 @@ public static IEnumerable Condense( resultsList .RemoveAll(match: - x => x.Value is null or (double and double.NaN)); + x => x.Value is null or (not null and double.NaN)); return resultsList.ToSortedList(); } @@ -45,7 +45,7 @@ public static IEnumerable Condense( for (int i = first; i < reList.Count; i++) { - IReusableResult? r = reList[i]; + IReusableResult r = reList[i]; prices.Add(new(r.Date, r.Value.Null2NaN())); } diff --git a/src/_common/Results/info.xml b/src/_common/Results/info.xml index e78cd58a0..11ad40769 100644 --- a/src/_common/Results/info.xml +++ b/src/_common/Results/info.xml @@ -21,7 +21,7 @@ Any reusable result type. Indicator results to evaluate. Collection of tuple time series of - results with specified handline of nulls, without pruning. + results with specified handling of nulls, without pruning. Removes the recommended quantity of results from the beginning of the results list diff --git a/src/a-d/Dpo/Dpo.Api.cs b/src/a-d/Dpo/Dpo.Api.cs index 3e6b798a8..83b245ea6 100644 --- a/src/a-d/Dpo/Dpo.Api.cs +++ b/src/a-d/Dpo/Dpo.Api.cs @@ -27,4 +27,4 @@ public static IEnumerable GetDpo( int lookbackPeriods) => priceTuples .ToSortedList() .CalcDpo(lookbackPeriods); -} \ No newline at end of file +} diff --git a/src/e-k/Epma/Epma.Api.cs b/src/e-k/Epma/Epma.Api.cs index 26fec2ffd..b999b8a4f 100644 --- a/src/e-k/Epma/Epma.Api.cs +++ b/src/e-k/Epma/Epma.Api.cs @@ -27,4 +27,4 @@ public static IEnumerable GetEpma( int lookbackPeriods) => priceTuples .ToSortedList() .CalcEpma(lookbackPeriods); -} \ No newline at end of file +} diff --git a/src/e-k/Hma/Hma.Api.cs b/src/e-k/Hma/Hma.Api.cs index 5b71e9c34..c60107ee4 100644 --- a/src/e-k/Hma/Hma.Api.cs +++ b/src/e-k/Hma/Hma.Api.cs @@ -27,4 +27,4 @@ public static IEnumerable GetHma( int lookbackPeriods) => priceTuples .ToSortedList() .CalcHma(lookbackPeriods); -} \ No newline at end of file +} diff --git a/src/m-r/ParabolicSar/ParabolicSar.Series.cs b/src/m-r/ParabolicSar/ParabolicSar.Series.cs index f4c2b69d7..9992e5ad4 100644 --- a/src/m-r/ParabolicSar/ParabolicSar.Series.cs +++ b/src/m-r/ParabolicSar/ParabolicSar.Series.cs @@ -35,7 +35,7 @@ internal static List CalcParabolicSar( // roll through quotes for (int i = 0; i < length; i++) { - QuoteD? q = qdList[i]; + QuoteD q = qdList[i]; ParabolicSarResult r = new(q.Date); results.Add(r); diff --git a/src/m-r/PivotPoints/PivotPoints.Series.cs b/src/m-r/PivotPoints/PivotPoints.Series.cs index a36f542a2..b8223c62c 100644 --- a/src/m-r/PivotPoints/PivotPoints.Series.cs +++ b/src/m-r/PivotPoints/PivotPoints.Series.cs @@ -196,7 +196,7 @@ internal static TPivotPoint GetPivotPointWoodie( } // pivot type lookup - internal static TPivotPoint? GetPivotPoint( + internal static TPivotPoint GetPivotPoint( PivotPointType pointType, decimal open, decimal high, decimal low, decimal close) where TPivotPoint : IPivotPoint, new() => pointType switch diff --git a/src/m-r/RollingPivots/RollingPivots.Series.cs b/src/m-r/RollingPivots/RollingPivots.Series.cs index 15df8dc30..06efcc09e 100644 --- a/src/m-r/RollingPivots/RollingPivots.Series.cs +++ b/src/m-r/RollingPivots/RollingPivots.Series.cs @@ -45,18 +45,18 @@ internal static List CalcRollingPivots( } // pivot points - RollingPivotsResult? wp = GetPivotPoint( + RollingPivotsResult wp = GetPivotPoint( pointType, q.Open, windowHigh, windowLow, windowClose); - r.PP = wp?.PP; - r.S1 = wp?.S1; - r.S2 = wp?.S2; - r.S3 = wp?.S3; - r.S4 = wp?.S4; - r.R1 = wp?.R1; - r.R2 = wp?.R2; - r.R3 = wp?.R3; - r.R4 = wp?.R4; + r.PP = wp.PP; + r.S1 = wp.S1; + r.S2 = wp.S2; + r.S3 = wp.S3; + r.S4 = wp.S4; + r.R1 = wp.R1; + r.R2 = wp.R2; + r.R3 = wp.R3; + r.R4 = wp.R4; } results.Add(r); diff --git a/src/s-z/Sma/Sma.Analysis.cs b/src/s-z/Sma/Sma.Analysis.cs index 304bff964..a4cddf4ee 100644 --- a/src/s-z/Sma/Sma.Analysis.cs +++ b/src/s-z/Sma/Sma.Analysis.cs @@ -8,7 +8,7 @@ internal static IEnumerable CalcSmaAnalysis( int lookbackPeriods) { // initialize - List? results = tpList + List results = tpList .CalcSma(lookbackPeriods) .Select(x => new SmaAnalysis(x.Date) { Sma = x.Sma }) .ToList(); diff --git a/src/s-z/Tema/Tema.Api.cs b/src/s-z/Tema/Tema.Api.cs index d7181c3e3..1955004f3 100644 --- a/src/s-z/Tema/Tema.Api.cs +++ b/src/s-z/Tema/Tema.Api.cs @@ -27,4 +27,4 @@ public static IEnumerable GetTema( int lookbackPeriods) => priceTuples .ToSortedList() .CalcTema(lookbackPeriods); -} \ No newline at end of file +} diff --git a/tests/indicators/GlobalUsings.cs b/tests/indicators/GlobalUsings.cs new file mode 100644 index 000000000..211ba4da6 --- /dev/null +++ b/tests/indicators/GlobalUsings.cs @@ -0,0 +1,3 @@ +global using Microsoft.VisualStudio.TestTools.UnitTesting; +global using Skender.Stock.Indicators; +global using Tests.Common; diff --git a/tests/indicators/_Initialize.cs b/tests/indicators/_Initialize.cs index 13531ce50..8fdecf061 100644 --- a/tests/indicators/_Initialize.cs +++ b/tests/indicators/_Initialize.cs @@ -1,7 +1,5 @@ using System.Globalization; using System.Runtime.CompilerServices; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; // GLOBALS & INITIALIZATION OF TEST DATA diff --git a/tests/indicators/_common/Candles/Candles.Tests.cs b/tests/indicators/_common/Candles/Candles.Tests.cs index f0448fdf9..2f5dbf94e 100644 --- a/tests/indicators/_common/Candles/Candles.Tests.cs +++ b/tests/indicators/_common/Candles/Candles.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Generics/Pruning.Tests.cs b/tests/indicators/_common/Generics/Pruning.Tests.cs index a4df09de7..5edd0265c 100644 --- a/tests/indicators/_common/Generics/Pruning.Tests.cs +++ b/tests/indicators/_common/Generics/Pruning.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Generics/Seek.Tests.cs b/tests/indicators/_common/Generics/Seek.Tests.cs index 5c0b5e7f1..cb312d597 100644 --- a/tests/indicators/_common/Generics/Seek.Tests.cs +++ b/tests/indicators/_common/Generics/Seek.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Generics/Sort.Tests.cs b/tests/indicators/_common/Generics/Sort.Tests.cs index 6463ec7dc..9445c0426 100644 --- a/tests/indicators/_common/Generics/Sort.Tests.cs +++ b/tests/indicators/_common/Generics/Sort.Tests.cs @@ -1,6 +1,4 @@ using System.Collections.ObjectModel; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; namespace Tests.Common; diff --git a/tests/indicators/_common/Generics/Transforms.Tests.cs b/tests/indicators/_common/Generics/Transforms.Tests.cs index 9b1574dc3..8c398518f 100644 --- a/tests/indicators/_common/Generics/Transforms.Tests.cs +++ b/tests/indicators/_common/Generics/Transforms.Tests.cs @@ -1,6 +1,4 @@ using System.Collections.ObjectModel; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; namespace Tests.Common; diff --git a/tests/indicators/_common/Helper.Getter.cs b/tests/indicators/_common/Helper.Getter.cs index 95e8b99bb..7a2daa11a 100644 --- a/tests/indicators/_common/Helper.Getter.cs +++ b/tests/indicators/_common/Helper.Getter.cs @@ -1,5 +1,3 @@ -using Skender.Stock.Indicators; - namespace Tests.Common; // IMPORT TEST DATA diff --git a/tests/indicators/_common/Helper.Importer.cs b/tests/indicators/_common/Helper.Importer.cs index 1bf34f402..b88006ca4 100644 --- a/tests/indicators/_common/Helper.Importer.cs +++ b/tests/indicators/_common/Helper.Importer.cs @@ -1,5 +1,4 @@ using System.Globalization; -using Skender.Stock.Indicators; namespace Tests.Common; @@ -30,7 +29,9 @@ internal static Quote QuoteFromCsv(string csvLine) } internal static decimal ToDecimal(this string value) - => decimal.TryParse(value, out decimal d) ? d : d; + => decimal.TryParse(value, out decimal d) ? d + : throw new NotFiniteNumberException( + $"Cannot convert `{value}`, it is not a number."); internal static decimal? ToDecimalNull(this string value) => decimal.TryParse(value, out decimal d) ? d : null; diff --git a/tests/indicators/_common/Helper.LiveQuotes.cs b/tests/indicators/_common/Helper.LiveQuotes.cs index 37bab744a..0f8a9278d 100644 --- a/tests/indicators/_common/Helper.LiveQuotes.cs +++ b/tests/indicators/_common/Helper.LiveQuotes.cs @@ -1,6 +1,4 @@ using Alpaca.Markets; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; namespace Tests.Indicators; diff --git a/tests/indicators/_common/Helper.Random.cs b/tests/indicators/_common/Helper.Random.cs index d2d08b533..0e238dcfb 100644 --- a/tests/indicators/_common/Helper.Random.cs +++ b/tests/indicators/_common/Helper.Random.cs @@ -1,5 +1,3 @@ -using Skender.Stock.Indicators; - namespace Tests.Common; /** @@ -77,4 +75,4 @@ private static double Price(double seed, double volatility, double drift) double z = Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2); return seed * Math.Exp(drift - (volatility * volatility * 0.5) + (volatility * z)); } -} \ No newline at end of file +} diff --git a/tests/indicators/_common/Math/Numerix.Tests.cs b/tests/indicators/_common/Math/Numerix.Tests.cs index 931ff8c67..a8cc81498 100644 --- a/tests/indicators/_common/Math/Numerix.Tests.cs +++ b/tests/indicators/_common/Math/Numerix.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Quotes/Quote.Aggregates.Tests.cs b/tests/indicators/_common/Quotes/Quote.Aggregates.Tests.cs index 0d676b381..44a79bd47 100644 --- a/tests/indicators/_common/Quotes/Quote.Aggregates.Tests.cs +++ b/tests/indicators/_common/Quotes/Quote.Aggregates.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Quotes/Quote.Converters.Tests.cs b/tests/indicators/_common/Quotes/Quote.Converters.Tests.cs index 37f7db72f..f4dc08592 100644 --- a/tests/indicators/_common/Quotes/Quote.Converters.Tests.cs +++ b/tests/indicators/_common/Quotes/Quote.Converters.Tests.cs @@ -1,6 +1,4 @@ using System.Collections.ObjectModel; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; namespace Tests.Common; diff --git a/tests/indicators/_common/Quotes/Quote.Exceptions.Tests.cs b/tests/indicators/_common/Quotes/Quote.Exceptions.Tests.cs index 5a0e4f09e..5a546b482 100644 --- a/tests/indicators/_common/Quotes/Quote.Exceptions.Tests.cs +++ b/tests/indicators/_common/Quotes/Quote.Exceptions.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Quotes/Quote.Validation.Tests.cs b/tests/indicators/_common/Quotes/Quote.Validation.Tests.cs index bdb28cefd..e9b0b716f 100644 --- a/tests/indicators/_common/Quotes/Quote.Validation.Tests.cs +++ b/tests/indicators/_common/Quotes/Quote.Validation.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Results/Result.Syncing.Tests.cs b/tests/indicators/_common/Results/Result.Syncing.Tests.cs index 294648b7b..e22906cdb 100644 --- a/tests/indicators/_common/Results/Result.Syncing.Tests.cs +++ b/tests/indicators/_common/Results/Result.Syncing.Tests.cs @@ -1,6 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; - namespace Tests.Common; [TestClass] diff --git a/tests/indicators/_common/Results/Result.Utilities.Tests.cs b/tests/indicators/_common/Results/Result.Utilities.Tests.cs index d50914f62..555386720 100644 --- a/tests/indicators/_common/Results/Result.Utilities.Tests.cs +++ b/tests/indicators/_common/Results/Result.Utilities.Tests.cs @@ -1,6 +1,4 @@ using System.Collections.ObjectModel; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; namespace Tests.Common; diff --git a/tests/indicators/a-d/Adl/Adl.Tests.cs b/tests/indicators/a-d/Adl/Adl.Tests.cs index a0a21f4b0..3130641c5 100644 --- a/tests/indicators/a-d/Adl/Adl.Tests.cs +++ b/tests/indicators/a-d/Adl/Adl.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Adx/Adx.Tests.cs b/tests/indicators/a-d/Adx/Adx.Tests.cs index c13d61191..81a4c4805 100644 --- a/tests/indicators/a-d/Adx/Adx.Tests.cs +++ b/tests/indicators/a-d/Adx/Adx.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Alligator/Alligator.Tests.cs b/tests/indicators/a-d/Alligator/Alligator.Tests.cs index 165e22c6c..f74aaec15 100644 --- a/tests/indicators/a-d/Alligator/Alligator.Tests.cs +++ b/tests/indicators/a-d/Alligator/Alligator.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Alma/Alma.Tests.cs b/tests/indicators/a-d/Alma/Alma.Tests.cs index d18191229..e855c5b6f 100644 --- a/tests/indicators/a-d/Alma/Alma.Tests.cs +++ b/tests/indicators/a-d/Alma/Alma.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Aroon/Aroon.Tests.cs b/tests/indicators/a-d/Aroon/Aroon.Tests.cs index d14a1cdbe..50fe8f8e5 100644 --- a/tests/indicators/a-d/Aroon/Aroon.Tests.cs +++ b/tests/indicators/a-d/Aroon/Aroon.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Atr/Atr.Tests.cs b/tests/indicators/a-d/Atr/Atr.Tests.cs index cdf363039..23267d3ea 100644 --- a/tests/indicators/a-d/Atr/Atr.Tests.cs +++ b/tests/indicators/a-d/Atr/Atr.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/AtrStop/AtrStop.Tests.cs b/tests/indicators/a-d/AtrStop/AtrStop.Tests.cs index 63df178a5..7d53fe6c5 100644 --- a/tests/indicators/a-d/AtrStop/AtrStop.Tests.cs +++ b/tests/indicators/a-d/AtrStop/AtrStop.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Awesome/Awesome.Tests.cs b/tests/indicators/a-d/Awesome/Awesome.Tests.cs index f856512b4..eab128bcc 100644 --- a/tests/indicators/a-d/Awesome/Awesome.Tests.cs +++ b/tests/indicators/a-d/Awesome/Awesome.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/BasicQuote/BasicQuote.Tests.cs b/tests/indicators/a-d/BasicQuote/BasicQuote.Tests.cs index 9be170863..45a8472a1 100644 --- a/tests/indicators/a-d/BasicQuote/BasicQuote.Tests.cs +++ b/tests/indicators/a-d/BasicQuote/BasicQuote.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Beta/Beta.Tests.cs b/tests/indicators/a-d/Beta/Beta.Tests.cs index d749bd124..67229ba06 100644 --- a/tests/indicators/a-d/Beta/Beta.Tests.cs +++ b/tests/indicators/a-d/Beta/Beta.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/BollingerBands/BollingerBands.Tests.cs b/tests/indicators/a-d/BollingerBands/BollingerBands.Tests.cs index 155eab91b..abd4cecea 100644 --- a/tests/indicators/a-d/BollingerBands/BollingerBands.Tests.cs +++ b/tests/indicators/a-d/BollingerBands/BollingerBands.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Bop/Bop.Tests.cs b/tests/indicators/a-d/Bop/Bop.Tests.cs index 6f407bbf8..3f459108a 100644 --- a/tests/indicators/a-d/Bop/Bop.Tests.cs +++ b/tests/indicators/a-d/Bop/Bop.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Cci/Cci.Tests.cs b/tests/indicators/a-d/Cci/Cci.Tests.cs index 89b1f1895..1154e6fb6 100644 --- a/tests/indicators/a-d/Cci/Cci.Tests.cs +++ b/tests/indicators/a-d/Cci/Cci.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/ChaikinOsc/ChaikinOsc.Tests.cs b/tests/indicators/a-d/ChaikinOsc/ChaikinOsc.Tests.cs index 365a2d3b9..89faa7093 100644 --- a/tests/indicators/a-d/ChaikinOsc/ChaikinOsc.Tests.cs +++ b/tests/indicators/a-d/ChaikinOsc/ChaikinOsc.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Chandelier/Chandelier.Tests.cs b/tests/indicators/a-d/Chandelier/Chandelier.Tests.cs index 09f6b543a..f100e2a7e 100644 --- a/tests/indicators/a-d/Chandelier/Chandelier.Tests.cs +++ b/tests/indicators/a-d/Chandelier/Chandelier.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Chop/Chop.Tests.cs b/tests/indicators/a-d/Chop/Chop.Tests.cs index fcd24efe0..cb316bf39 100644 --- a/tests/indicators/a-d/Chop/Chop.Tests.cs +++ b/tests/indicators/a-d/Chop/Chop.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Cmf/Cmf.Tests.cs b/tests/indicators/a-d/Cmf/Cmf.Tests.cs index 1580da26b..53d1e23fd 100644 --- a/tests/indicators/a-d/Cmf/Cmf.Tests.cs +++ b/tests/indicators/a-d/Cmf/Cmf.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Cmo/Cmo.Tests.cs b/tests/indicators/a-d/Cmo/Cmo.Tests.cs index d3d263821..52b1b82bc 100644 --- a/tests/indicators/a-d/Cmo/Cmo.Tests.cs +++ b/tests/indicators/a-d/Cmo/Cmo.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/ConnorsRsi/ConnorsRsi.Tests.cs b/tests/indicators/a-d/ConnorsRsi/ConnorsRsi.Tests.cs index 3c5902622..e28b2b9c2 100644 --- a/tests/indicators/a-d/ConnorsRsi/ConnorsRsi.Tests.cs +++ b/tests/indicators/a-d/ConnorsRsi/ConnorsRsi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Correlation/Correlation.Tests.cs b/tests/indicators/a-d/Correlation/Correlation.Tests.cs index 9cb328e6a..53c60c0a3 100644 --- a/tests/indicators/a-d/Correlation/Correlation.Tests.cs +++ b/tests/indicators/a-d/Correlation/Correlation.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Dema/Dema.Tests.cs b/tests/indicators/a-d/Dema/Dema.Tests.cs index ad77f67af..b0a040b7c 100644 --- a/tests/indicators/a-d/Dema/Dema.Tests.cs +++ b/tests/indicators/a-d/Dema/Dema.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Doji/Doji.Tests.cs b/tests/indicators/a-d/Doji/Doji.Tests.cs index 721d61314..4e43d65b2 100644 --- a/tests/indicators/a-d/Doji/Doji.Tests.cs +++ b/tests/indicators/a-d/Doji/Doji.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Donchian/Donchian.Tests.cs b/tests/indicators/a-d/Donchian/Donchian.Tests.cs index 53146512a..d41056dad 100644 --- a/tests/indicators/a-d/Donchian/Donchian.Tests.cs +++ b/tests/indicators/a-d/Donchian/Donchian.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Dpo/Dpo.Tests.cs b/tests/indicators/a-d/Dpo/Dpo.Tests.cs index c89117e1f..2f897777b 100644 --- a/tests/indicators/a-d/Dpo/Dpo.Tests.cs +++ b/tests/indicators/a-d/Dpo/Dpo.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/a-d/Dynamic/Dynamic.Tests.cs b/tests/indicators/a-d/Dynamic/Dynamic.Tests.cs index 55fa529bf..a3fb16f0f 100644 --- a/tests/indicators/a-d/Dynamic/Dynamic.Tests.cs +++ b/tests/indicators/a-d/Dynamic/Dynamic.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/ElderRay/ElderRay.Tests.cs b/tests/indicators/e-k/ElderRay/ElderRay.Tests.cs index 887ce06c1..34af7b32b 100644 --- a/tests/indicators/e-k/ElderRay/ElderRay.Tests.cs +++ b/tests/indicators/e-k/ElderRay/ElderRay.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Ema/Ema.Static.Tests.cs b/tests/indicators/e-k/Ema/Ema.Static.Tests.cs index bdc4e628e..7987bae6d 100644 --- a/tests/indicators/e-k/Ema/Ema.Static.Tests.cs +++ b/tests/indicators/e-k/Ema/Ema.Static.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Epma/Epma.Tests.cs b/tests/indicators/e-k/Epma/Epma.Tests.cs index 9caa63004..5db2e5478 100644 --- a/tests/indicators/e-k/Epma/Epma.Tests.cs +++ b/tests/indicators/e-k/Epma/Epma.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Fcb/Fcb.Tests.cs b/tests/indicators/e-k/Fcb/Fcb.Tests.cs index e63438dc7..ed51d3f43 100644 --- a/tests/indicators/e-k/Fcb/Fcb.Tests.cs +++ b/tests/indicators/e-k/Fcb/Fcb.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/FisherTransform/FisherTransform.Tests.cs b/tests/indicators/e-k/FisherTransform/FisherTransform.Tests.cs index b027c8454..5ea407a37 100644 --- a/tests/indicators/e-k/FisherTransform/FisherTransform.Tests.cs +++ b/tests/indicators/e-k/FisherTransform/FisherTransform.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/ForceIndex/ForceIndex.Tests.cs b/tests/indicators/e-k/ForceIndex/ForceIndex.Tests.cs index bbaf7bba6..0c6c37ea1 100644 --- a/tests/indicators/e-k/ForceIndex/ForceIndex.Tests.cs +++ b/tests/indicators/e-k/ForceIndex/ForceIndex.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Fractal/Fractal.Tests.cs b/tests/indicators/e-k/Fractal/Fractal.Tests.cs index 2195c57fe..fcc7685f9 100644 --- a/tests/indicators/e-k/Fractal/Fractal.Tests.cs +++ b/tests/indicators/e-k/Fractal/Fractal.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Gator/Gator.Tests.cs b/tests/indicators/e-k/Gator/Gator.Tests.cs index 4d373fa6d..bb7f44816 100644 --- a/tests/indicators/e-k/Gator/Gator.Tests.cs +++ b/tests/indicators/e-k/Gator/Gator.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/HeikinAshi/HeikinAshi.Tests.cs b/tests/indicators/e-k/HeikinAshi/HeikinAshi.Tests.cs index d6ed44963..cfff18c7a 100644 --- a/tests/indicators/e-k/HeikinAshi/HeikinAshi.Tests.cs +++ b/tests/indicators/e-k/HeikinAshi/HeikinAshi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Hma/Hma.Tests.cs b/tests/indicators/e-k/Hma/Hma.Tests.cs index aa73a258e..d773a8e69 100644 --- a/tests/indicators/e-k/Hma/Hma.Tests.cs +++ b/tests/indicators/e-k/Hma/Hma.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/HtTrendline/HtTrendline.Tests.cs b/tests/indicators/e-k/HtTrendline/HtTrendline.Tests.cs index a3784248e..c20807ea3 100644 --- a/tests/indicators/e-k/HtTrendline/HtTrendline.Tests.cs +++ b/tests/indicators/e-k/HtTrendline/HtTrendline.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Hurst/Hurst.Tests.cs b/tests/indicators/e-k/Hurst/Hurst.Tests.cs index 9270a9b01..6cb517461 100644 --- a/tests/indicators/e-k/Hurst/Hurst.Tests.cs +++ b/tests/indicators/e-k/Hurst/Hurst.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Ichimoku/Ichimoku.Tests.cs b/tests/indicators/e-k/Ichimoku/Ichimoku.Tests.cs index 4aabcbd37..6974c481e 100644 --- a/tests/indicators/e-k/Ichimoku/Ichimoku.Tests.cs +++ b/tests/indicators/e-k/Ichimoku/Ichimoku.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Kama/Kama.Tests.cs b/tests/indicators/e-k/Kama/Kama.Tests.cs index 3466da638..3375f0fb4 100644 --- a/tests/indicators/e-k/Kama/Kama.Tests.cs +++ b/tests/indicators/e-k/Kama/Kama.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Keltner/Keltner.Tests.cs b/tests/indicators/e-k/Keltner/Keltner.Tests.cs index 2e1220b7b..05c6e88e4 100644 --- a/tests/indicators/e-k/Keltner/Keltner.Tests.cs +++ b/tests/indicators/e-k/Keltner/Keltner.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/e-k/Kvo/Kvo.Tests.cs b/tests/indicators/e-k/Kvo/Kvo.Tests.cs index dec8f2bce..80e1c7869 100644 --- a/tests/indicators/e-k/Kvo/Kvo.Tests.cs +++ b/tests/indicators/e-k/Kvo/Kvo.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/MaEnvelopes/MaEnvelopes.Tests.cs b/tests/indicators/m-r/MaEnvelopes/MaEnvelopes.Tests.cs index a3287e877..d1da84130 100644 --- a/tests/indicators/m-r/MaEnvelopes/MaEnvelopes.Tests.cs +++ b/tests/indicators/m-r/MaEnvelopes/MaEnvelopes.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Macd/Macd.Tests.cs b/tests/indicators/m-r/Macd/Macd.Tests.cs index d5c23781d..c4b135464 100644 --- a/tests/indicators/m-r/Macd/Macd.Tests.cs +++ b/tests/indicators/m-r/Macd/Macd.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Mama/Mama.Tests.cs b/tests/indicators/m-r/Mama/Mama.Tests.cs index 2cc0573c6..114426172 100644 --- a/tests/indicators/m-r/Mama/Mama.Tests.cs +++ b/tests/indicators/m-r/Mama/Mama.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Marubozu/Marubozu.Tests.cs b/tests/indicators/m-r/Marubozu/Marubozu.Tests.cs index c087da102..bd3f17a0c 100644 --- a/tests/indicators/m-r/Marubozu/Marubozu.Tests.cs +++ b/tests/indicators/m-r/Marubozu/Marubozu.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Mfi/Mfi.Tests.cs b/tests/indicators/m-r/Mfi/Mfi.Tests.cs index a6bca6049..85ecf769a 100644 --- a/tests/indicators/m-r/Mfi/Mfi.Tests.cs +++ b/tests/indicators/m-r/Mfi/Mfi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Obv/Obv.Tests.cs b/tests/indicators/m-r/Obv/Obv.Tests.cs index caeeeb83d..fe332d810 100644 --- a/tests/indicators/m-r/Obv/Obv.Tests.cs +++ b/tests/indicators/m-r/Obv/Obv.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/ParabolicSar/ParabolicSar.Tests.cs b/tests/indicators/m-r/ParabolicSar/ParabolicSar.Tests.cs index 93928244c..36494f1d5 100644 --- a/tests/indicators/m-r/ParabolicSar/ParabolicSar.Tests.cs +++ b/tests/indicators/m-r/ParabolicSar/ParabolicSar.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/PivotPoints/PivotPoints.Tests.cs b/tests/indicators/m-r/PivotPoints/PivotPoints.Tests.cs index 3ee14eb2b..aa8e93910 100644 --- a/tests/indicators/m-r/PivotPoints/PivotPoints.Tests.cs +++ b/tests/indicators/m-r/PivotPoints/PivotPoints.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Pivots/Pivots.Tests.cs b/tests/indicators/m-r/Pivots/Pivots.Tests.cs index 498fccf9c..cc53cb23b 100644 --- a/tests/indicators/m-r/Pivots/Pivots.Tests.cs +++ b/tests/indicators/m-r/Pivots/Pivots.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Pmo/Pmo.Tests.cs b/tests/indicators/m-r/Pmo/Pmo.Tests.cs index 84fad465d..bc6110442 100644 --- a/tests/indicators/m-r/Pmo/Pmo.Tests.cs +++ b/tests/indicators/m-r/Pmo/Pmo.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Prs/Prs.Tests.cs b/tests/indicators/m-r/Prs/Prs.Tests.cs index 135803ed0..e3bf0536c 100644 --- a/tests/indicators/m-r/Prs/Prs.Tests.cs +++ b/tests/indicators/m-r/Prs/Prs.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Pvo/Pvo.Tests.cs b/tests/indicators/m-r/Pvo/Pvo.Tests.cs index 9f4a65c51..0c82c340b 100644 --- a/tests/indicators/m-r/Pvo/Pvo.Tests.cs +++ b/tests/indicators/m-r/Pvo/Pvo.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Renko/Renko.Tests.cs b/tests/indicators/m-r/Renko/Renko.Tests.cs index e650e0257..9e94bfaa5 100644 --- a/tests/indicators/m-r/Renko/Renko.Tests.cs +++ b/tests/indicators/m-r/Renko/Renko.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Roc/Roc.Tests.cs b/tests/indicators/m-r/Roc/Roc.Tests.cs index f33e3d94e..9933afca6 100644 --- a/tests/indicators/m-r/Roc/Roc.Tests.cs +++ b/tests/indicators/m-r/Roc/Roc.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/RocWb/RocWb.Tests.cs b/tests/indicators/m-r/RocWb/RocWb.Tests.cs index 5ea95ea91..2e5b95412 100644 --- a/tests/indicators/m-r/RocWb/RocWb.Tests.cs +++ b/tests/indicators/m-r/RocWb/RocWb.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/RollingPivots/RollingPivots.Tests.cs b/tests/indicators/m-r/RollingPivots/RollingPivots.Tests.cs index 493733705..2e422d274 100644 --- a/tests/indicators/m-r/RollingPivots/RollingPivots.Tests.cs +++ b/tests/indicators/m-r/RollingPivots/RollingPivots.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/m-r/Rsi/Rsi.Tests.cs b/tests/indicators/m-r/Rsi/Rsi.Tests.cs index c3e0b55f5..2ef69eefe 100644 --- a/tests/indicators/m-r/Rsi/Rsi.Tests.cs +++ b/tests/indicators/m-r/Rsi/Rsi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Slope/Slope.Tests.cs b/tests/indicators/s-z/Slope/Slope.Tests.cs index b92ca6a67..d6a51eab2 100644 --- a/tests/indicators/s-z/Slope/Slope.Tests.cs +++ b/tests/indicators/s-z/Slope/Slope.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Sma/Sma.Analysis.Tests.cs b/tests/indicators/s-z/Sma/Sma.Analysis.Tests.cs index b2c80de3d..790bbc920 100644 --- a/tests/indicators/s-z/Sma/Sma.Analysis.Tests.cs +++ b/tests/indicators/s-z/Sma/Sma.Analysis.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Sma/Sma.Static.Tests.cs b/tests/indicators/s-z/Sma/Sma.Static.Tests.cs index f48f11c9b..e6defb30a 100644 --- a/tests/indicators/s-z/Sma/Sma.Static.Tests.cs +++ b/tests/indicators/s-z/Sma/Sma.Static.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Smi/Smi.Tests.cs b/tests/indicators/s-z/Smi/Smi.Tests.cs index 2e1e72493..1d0ecba39 100644 --- a/tests/indicators/s-z/Smi/Smi.Tests.cs +++ b/tests/indicators/s-z/Smi/Smi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Smma/Smma.Tests.cs b/tests/indicators/s-z/Smma/Smma.Tests.cs index 8291332b8..27750da1a 100644 --- a/tests/indicators/s-z/Smma/Smma.Tests.cs +++ b/tests/indicators/s-z/Smma/Smma.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/StarcBands/StarcBands.Tests.cs b/tests/indicators/s-z/StarcBands/StarcBands.Tests.cs index d33ef73de..08a7a9ce4 100644 --- a/tests/indicators/s-z/StarcBands/StarcBands.Tests.cs +++ b/tests/indicators/s-z/StarcBands/StarcBands.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Stc/Stc.Tests.cs b/tests/indicators/s-z/Stc/Stc.Tests.cs index 23f9066fb..fda82df9b 100644 --- a/tests/indicators/s-z/Stc/Stc.Tests.cs +++ b/tests/indicators/s-z/Stc/Stc.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/StdDev/StdDev.Tests.cs b/tests/indicators/s-z/StdDev/StdDev.Tests.cs index db9ca3e96..54a51fc51 100644 --- a/tests/indicators/s-z/StdDev/StdDev.Tests.cs +++ b/tests/indicators/s-z/StdDev/StdDev.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/StdDevChannels/StdDevChannels.Tests.cs b/tests/indicators/s-z/StdDevChannels/StdDevChannels.Tests.cs index 9a4a9d074..ad6abad22 100644 --- a/tests/indicators/s-z/StdDevChannels/StdDevChannels.Tests.cs +++ b/tests/indicators/s-z/StdDevChannels/StdDevChannels.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Stoch/Stoch.Tests.cs b/tests/indicators/s-z/Stoch/Stoch.Tests.cs index 11d9c9c5d..9abee8370 100644 --- a/tests/indicators/s-z/Stoch/Stoch.Tests.cs +++ b/tests/indicators/s-z/Stoch/Stoch.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/StochRsi/StochRsi.Tests.cs b/tests/indicators/s-z/StochRsi/StochRsi.Tests.cs index e76d65bbc..966e9b40f 100644 --- a/tests/indicators/s-z/StochRsi/StochRsi.Tests.cs +++ b/tests/indicators/s-z/StochRsi/StochRsi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/SuperTrend/SuperTrend.Tests.cs b/tests/indicators/s-z/SuperTrend/SuperTrend.Tests.cs index b7522ab00..47232f3fd 100644 --- a/tests/indicators/s-z/SuperTrend/SuperTrend.Tests.cs +++ b/tests/indicators/s-z/SuperTrend/SuperTrend.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/T3/T3.Tests.cs b/tests/indicators/s-z/T3/T3.Tests.cs index d5698b5e0..145a773e2 100644 --- a/tests/indicators/s-z/T3/T3.Tests.cs +++ b/tests/indicators/s-z/T3/T3.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Tema/Tema.Tests.cs b/tests/indicators/s-z/Tema/Tema.Tests.cs index e52066dd9..7970b480e 100644 --- a/tests/indicators/s-z/Tema/Tema.Tests.cs +++ b/tests/indicators/s-z/Tema/Tema.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Tr/Tr.Tests.cs b/tests/indicators/s-z/Tr/Tr.Tests.cs index a251321f4..c7fbebe54 100644 --- a/tests/indicators/s-z/Tr/Tr.Tests.cs +++ b/tests/indicators/s-z/Tr/Tr.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Trix/Trix.Tests.cs b/tests/indicators/s-z/Trix/Trix.Tests.cs index 81f4baab3..cd3d52d92 100644 --- a/tests/indicators/s-z/Trix/Trix.Tests.cs +++ b/tests/indicators/s-z/Trix/Trix.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Tsi/Tsi.Tests.cs b/tests/indicators/s-z/Tsi/Tsi.Tests.cs index 90fa92c9d..84b8d7776 100644 --- a/tests/indicators/s-z/Tsi/Tsi.Tests.cs +++ b/tests/indicators/s-z/Tsi/Tsi.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/UlcerIndex/UlcerIndex.Tests.cs b/tests/indicators/s-z/UlcerIndex/UlcerIndex.Tests.cs index 17cedfaaf..f94d4e3f3 100644 --- a/tests/indicators/s-z/UlcerIndex/UlcerIndex.Tests.cs +++ b/tests/indicators/s-z/UlcerIndex/UlcerIndex.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Ultimate/Ultimate.Tests.cs b/tests/indicators/s-z/Ultimate/Ultimate.Tests.cs index a926c926f..0ee1e7361 100644 --- a/tests/indicators/s-z/Ultimate/Ultimate.Tests.cs +++ b/tests/indicators/s-z/Ultimate/Ultimate.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/VolatilityStop/VolatilityStop.Tests.cs b/tests/indicators/s-z/VolatilityStop/VolatilityStop.Tests.cs index 1c601befc..6dbb3e82c 100644 --- a/tests/indicators/s-z/VolatilityStop/VolatilityStop.Tests.cs +++ b/tests/indicators/s-z/VolatilityStop/VolatilityStop.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Vortex/Vortex.Tests.cs b/tests/indicators/s-z/Vortex/Vortex.Tests.cs index 38a77b3ca..7d183471b 100644 --- a/tests/indicators/s-z/Vortex/Vortex.Tests.cs +++ b/tests/indicators/s-z/Vortex/Vortex.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Vwap/Vwap.Tests.cs b/tests/indicators/s-z/Vwap/Vwap.Tests.cs index 78ef4371d..11143e3a7 100644 --- a/tests/indicators/s-z/Vwap/Vwap.Tests.cs +++ b/tests/indicators/s-z/Vwap/Vwap.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Vwma/Vwma.Tests.cs b/tests/indicators/s-z/Vwma/Vwma.Tests.cs index 50fe298c6..f722d9d29 100644 --- a/tests/indicators/s-z/Vwma/Vwma.Tests.cs +++ b/tests/indicators/s-z/Vwma/Vwma.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/WilliamsR/WilliamsR.Tests.cs b/tests/indicators/s-z/WilliamsR/WilliamsR.Tests.cs index 944a6aa44..b18d96745 100644 --- a/tests/indicators/s-z/WilliamsR/WilliamsR.Tests.cs +++ b/tests/indicators/s-z/WilliamsR/WilliamsR.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/Wma/Wma.Tests.cs b/tests/indicators/s-z/Wma/Wma.Tests.cs index fe1210378..e114970de 100644 --- a/tests/indicators/s-z/Wma/Wma.Tests.cs +++ b/tests/indicators/s-z/Wma/Wma.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Indicators; [TestClass] diff --git a/tests/indicators/s-z/ZigZag/ZigZag.Tests.cs b/tests/indicators/s-z/ZigZag/ZigZag.Tests.cs index 8a6ecca46..869bae9bb 100644 --- a/tests/indicators/s-z/ZigZag/ZigZag.Tests.cs +++ b/tests/indicators/s-z/ZigZag/ZigZag.Tests.cs @@ -1,7 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; -using Skender.Stock.Indicators; -using Tests.Common; namespace Tests.Indicators; diff --git a/tests/other/Convergence.Tests.cs b/tests/other/Convergence.Tests.cs index 79a61e490..5c1f707c3 100644 --- a/tests/other/Convergence.Tests.cs +++ b/tests/other/Convergence.Tests.cs @@ -1,7 +1,3 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Convergence; [TestClass] diff --git a/tests/other/CustomIndicator.Tests.cs b/tests/other/CustomIndicator.Tests.cs index 83c5b58ac..c9250d63c 100644 --- a/tests/other/CustomIndicator.Tests.cs +++ b/tests/other/CustomIndicator.Tests.cs @@ -1,8 +1,5 @@ using System.Collections.ObjectModel; using System.Globalization; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; namespace Tests.CustomIndicators; @@ -213,7 +210,7 @@ public void TupleNaN() .ToList(); Assert.AreEqual(200, r.Count); - Assert.AreEqual(0, r.Count(x => x.Sma is double and double.NaN)); + Assert.AreEqual(0, r.Count(x => x.Sma is not null and double.NaN)); } [TestMethod] @@ -223,7 +220,7 @@ public void NaN() .GetIndicator(50) .ToList(); - Assert.AreEqual(0, r.Count(x => x.Sma is double and double.NaN)); + Assert.AreEqual(0, r.Count(x => x.Sma is not null and double.NaN)); } [TestMethod] @@ -234,7 +231,7 @@ public void BadData() .ToList(); Assert.AreEqual(502, r.Count); - Assert.AreEqual(0, r.Count(x => x.Sma is double and double.NaN)); + Assert.AreEqual(0, r.Count(x => x.Sma is not null and double.NaN)); } [TestMethod] diff --git a/tests/other/GlobalUsings.cs b/tests/other/GlobalUsings.cs new file mode 100644 index 000000000..211ba4da6 --- /dev/null +++ b/tests/other/GlobalUsings.cs @@ -0,0 +1,3 @@ +global using Microsoft.VisualStudio.TestTools.UnitTesting; +global using Skender.Stock.Indicators; +global using Tests.Common; diff --git a/tests/other/PublicApi.Tests.cs b/tests/other/PublicApi.Tests.cs index 82991d373..574986428 100644 --- a/tests/other/PublicApi.Tests.cs +++ b/tests/other/PublicApi.Tests.cs @@ -1,7 +1,4 @@ using System.Globalization; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Skender.Stock.Indicators; -using Tests.Common; [assembly: CLSCompliant(true)] namespace Tests.PublicApi; diff --git a/tests/performance/GlobalUsings.cs b/tests/performance/GlobalUsings.cs new file mode 100644 index 000000000..373a066f6 --- /dev/null +++ b/tests/performance/GlobalUsings.cs @@ -0,0 +1,3 @@ +global using BenchmarkDotNet.Attributes; +global using Skender.Stock.Indicators; +global using Tests.Common; diff --git a/tests/performance/Perf.Helpers.cs b/tests/performance/Perf.Helpers.cs index f1f794aed..b08cd767f 100644 --- a/tests/performance/Perf.Helpers.cs +++ b/tests/performance/Perf.Helpers.cs @@ -1,7 +1,3 @@ -using BenchmarkDotNet.Attributes; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Performance; // HELPERS, both public and private diff --git a/tests/performance/Perf.Internals.cs b/tests/performance/Perf.Internals.cs index 2de4510d0..2c2611fe5 100644 --- a/tests/performance/Perf.Internals.cs +++ b/tests/performance/Perf.Internals.cs @@ -1,20 +1,15 @@ -using BenchmarkDotNet.Attributes; -using Skender.Stock.Indicators; -using Tests.Common; - namespace Tests.Performance; // INTERNAL FUNCTIONS public class InternalsPerformance { - // standard deviation - - private double[] values; - [Params(20, 50, 250, 1000)] public int Periods; + private double[] values; + + // standard deviation [GlobalSetup(Targets = new[] { nameof(StdDev) })] public void Setup() => values = TestData.GetLongish(Periods) diff --git a/tests/performance/Program.cs b/tests/performance/Program.cs index 77da64453..b0603b80b 100644 --- a/tests/performance/Program.cs +++ b/tests/performance/Program.cs @@ -1,6 +1,7 @@ using BenchmarkDotNet.Running; [assembly: CLSCompliant(false)] + namespace Tests.Performance; public static class Program diff --git a/tests/performance/Tests.Performance.csproj b/tests/performance/Tests.Performance.csproj index 74cb35218..bd65b4df8 100644 --- a/tests/performance/Tests.Performance.csproj +++ b/tests/performance/Tests.Performance.csproj @@ -22,8 +22,8 @@ - - + +