Skip to content

Commit

Permalink
Added global usings
Browse files Browse the repository at this point in the history
  • Loading branch information
portyanikhin committed Dec 4, 2022
1 parent ef859fb commit 79be9b0
Show file tree
Hide file tree
Showing 39 changed files with 61 additions and 215 deletions.
9 changes: 1 addition & 8 deletions SharpProp.Tests/Enums/FluidsListTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using FluentAssertions;
using Xunit;

namespace SharpProp.Tests;
namespace SharpProp.Tests;

public static class FluidsListTests
{
Expand Down
10 changes: 1 addition & 9 deletions SharpProp.Tests/Fluids/FluidExtendedTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
using System;
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using UnitsNet.Units;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
9 changes: 1 addition & 8 deletions SharpProp.Tests/Fluids/FluidProcessesTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
14 changes: 1 addition & 13 deletions SharpProp.Tests/Fluids/FluidTests.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentAssertions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToTemperature;
using UnitsNet.Serialization.JsonNet;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
9 changes: 1 addition & 8 deletions SharpProp.Tests/Fluids/MixtureProcessesTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToTemperature;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
12 changes: 1 addition & 11 deletions SharpProp.Tests/Fluids/MixtureTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Collections.Generic;
using FluentAssertions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToTemperature;
using UnitsNet.Serialization.JsonNet;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
15 changes: 15 additions & 0 deletions SharpProp.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
global using FluentAssertions;
global using Newtonsoft.Json;
global using Newtonsoft.Json.Converters;
global using System.Diagnostics.CodeAnalysis;
global using UnitsNet;
global using UnitsNet.NumberExtensions.NumberToDensity;
global using UnitsNet.NumberExtensions.NumberToLength;
global using UnitsNet.NumberExtensions.NumberToMolarMass;
global using UnitsNet.NumberExtensions.NumberToPressure;
global using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
global using UnitsNet.NumberExtensions.NumberToSpecificEntropy;
global using UnitsNet.NumberExtensions.NumberToTemperature;
global using UnitsNet.Serialization.JsonNet;
global using UnitsNet.Units;
global using Xunit;
9 changes: 1 addition & 8 deletions SharpProp.Tests/HumidAir/HumidAirExtendedTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using UnitsNet.Units;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
9 changes: 1 addition & 8 deletions SharpProp.Tests/HumidAir/HumidAirProcessesTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
15 changes: 1 addition & 14 deletions SharpProp.Tests/HumidAir/HumidAirTests.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentAssertions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToLength;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRelativeHumidity;
using UnitsNet.NumberExtensions.NumberToTemperature;
using UnitsNet.Serialization.JsonNet;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRelativeHumidity;

namespace SharpProp.Tests;

Expand Down
7 changes: 1 addition & 6 deletions SharpProp.Tests/IO/InputExtendedTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToMolarMass;
using Xunit;

namespace SharpProp.Tests;
namespace SharpProp.Tests;

/// <summary>
/// An example of how to extend the <see cref="Input" /> record.
Expand Down
5 changes: 1 addition & 4 deletions SharpProp.Tests/IO/InputHumidAirExtendedTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToRatio;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
13 changes: 1 addition & 12 deletions SharpProp.Tests/IO/InputHumidAirTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
using System;
using System.Collections.Generic;
using FluentAssertions;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToDensity;
using UnitsNet.NumberExtensions.NumberToLength;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToSpecificEntropy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using Xunit;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp.Tests;

Expand Down
8 changes: 0 additions & 8 deletions SharpProp.Tests/IO/InputTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
using System.Collections.Generic;
using FluentAssertions;
using UnitsNet.NumberExtensions.NumberToDensity;
using UnitsNet.NumberExtensions.NumberToPressure;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToSpecificEntropy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using Xunit;

namespace SharpProp.Tests;

Expand Down
1 change: 1 addition & 0 deletions SharpProp.Tests/SharpProp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<Authors>Vladimir Portyanikhin</Authors>
<Copyright>Copyright (c) Vladimir Portyanikhin 2021</Copyright>
<Description>Unit tests for the SharpProp</Description>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
4 changes: 0 additions & 4 deletions SharpProp/CoolProp/AbstractState.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace SharpProp;

[ExcludeFromCodeCoverage]
Expand Down
6 changes: 1 addition & 5 deletions SharpProp/CoolProp/AbstractStatePInvoke.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace SharpProp;
namespace SharpProp;

[ExcludeFromCodeCoverage]
internal static class AbstractStatePInvoke
Expand Down
2 changes: 0 additions & 2 deletions SharpProp/CoolProp/CoolProp.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Diagnostics.CodeAnalysis;

namespace SharpProp;

[ExcludeFromCodeCoverage]
Expand Down
3 changes: 0 additions & 3 deletions SharpProp/CoolProp/CoolPropPInvoke.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace SharpProp;

[ExcludeFromCodeCoverage]
Expand Down
6 changes: 0 additions & 6 deletions SharpProp/CoolProp/DoubleVector.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace SharpProp;

[ExcludeFromCodeCoverage]
Expand Down
6 changes: 1 addition & 5 deletions SharpProp/CoolProp/DoubleVectorPInvoke.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace SharpProp;
namespace SharpProp;

[ExcludeFromCodeCoverage]
internal static class DoubleVectorPInvoke
Expand Down
4 changes: 1 addition & 3 deletions SharpProp/CoolProp/Library.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Diagnostics.CodeAnalysis;

namespace SharpProp;
namespace SharpProp;

[ExcludeFromCodeCoverage]
internal static class Library
Expand Down
7 changes: 1 addition & 6 deletions SharpProp/CoolProp/SwigExceptions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Runtime.InteropServices;

namespace SharpProp;
namespace SharpProp;

[ExcludeFromCodeCoverage]
internal static class SwigExceptions
Expand Down
4 changes: 1 addition & 3 deletions SharpProp/Enums/FluidInfoAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SharpProp;
namespace SharpProp;

/// <summary>
/// Fluid predefined info.
Expand Down
6 changes: 1 addition & 5 deletions SharpProp/Extensions/FluidsListExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using EnumsNET;
using UnitsNet;
using UnitsNet.Units;

namespace SharpProp;
namespace SharpProp;

public static class FluidsListExtensions
{
Expand Down
7 changes: 1 addition & 6 deletions SharpProp/Extensions/JsonExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using UnitsNet.Serialization.JsonNet;

namespace SharpProp;
namespace SharpProp;

public static class JsonExtensions
{
Expand Down
5 changes: 1 addition & 4 deletions SharpProp/Fluids/AbstractFluid.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

namespace SharpProp;
namespace SharpProp;

/// <summary>
/// Base class of fluids.
Expand Down
6 changes: 1 addition & 5 deletions SharpProp/Fluids/Fluid.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using UnitsNet;
using UnitsNet.Units;

namespace SharpProp;
namespace SharpProp;

/// <summary>
/// Pure/pseudo-pure fluid or binary mixture.
Expand Down
4 changes: 1 addition & 3 deletions SharpProp/Fluids/FluidProcesses.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToRatio;
using UnitsNet.NumberExtensions.NumberToRatio;

namespace SharpProp;

Expand Down
6 changes: 1 addition & 5 deletions SharpProp/Fluids/FluidProperties.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System.Collections.Generic;
using UnitsNet;
using UnitsNet.Units;

namespace SharpProp;
namespace SharpProp;

public abstract partial class AbstractFluid
{
Expand Down
8 changes: 1 addition & 7 deletions SharpProp/Fluids/Mixture.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnitsNet;
using UnitsNet.Units;

namespace SharpProp;
namespace SharpProp;

/// <summary>
/// Mass-based mixture of pure fluids.
Expand Down
14 changes: 14 additions & 0 deletions SharpProp/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
global using EnumsNET;
global using Newtonsoft.Json;
global using Newtonsoft.Json.Converters;
global using System;
global using System.Collections;
global using System.Collections.Generic;
global using System.Diagnostics.CodeAnalysis;
global using System.IO;
global using System.Runtime.InteropServices;
global using UnitsNet;
global using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
global using UnitsNet.NumberExtensions.NumberToTemperature;
global using UnitsNet.Serialization.JsonNet;
global using UnitsNet.Units;
7 changes: 1 addition & 6 deletions SharpProp/HumidAir/HumidAir.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

namespace SharpProp;
namespace SharpProp;

/// <summary>
/// Real humid air (see ASHRAE RP-1485).
Expand Down
6 changes: 1 addition & 5 deletions SharpProp/HumidAir/HumidAirProcesses.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using UnitsNet;
using UnitsNet.NumberExtensions.NumberToRelativeHumidity;
using UnitsNet.NumberExtensions.NumberToSpecificEnergy;
using UnitsNet.NumberExtensions.NumberToTemperature;
using UnitsNet.NumberExtensions.NumberToRelativeHumidity;

namespace SharpProp;

Expand Down
Loading

0 comments on commit 79be9b0

Please sign in to comment.