EFcoreExtension
All checks were successful
Publish NuGet packages / publish (push) Successful in 1m15s
All checks were successful
Publish NuGet packages / publish (push) Successful in 1m15s
This commit is contained in:
@@ -7,16 +7,16 @@
|
||||
private static readonly double scalarDouble = 500.0; // прибавляемое значение в мм
|
||||
|
||||
// Коллекции единиц
|
||||
private static readonly Length[] unitsArray = new[] { Length.Meter, Length._MilliMeter };
|
||||
private static readonly Length?[] nullableUnitsArray = new Length?[] { Length.Meter, null, Length._MilliMeter };
|
||||
private static readonly List<Length> unitsList = new List<Length> { Length.Meter, Length._MilliMeter };
|
||||
private static readonly List<Length?> nullableUnitsList = new List<Length?> { Length.Meter, null, Length._MilliMeter };
|
||||
private static readonly Length[] unitsArray = [Length.Meter, Length._MilliMeter];
|
||||
private static readonly Length?[] nullableUnitsArray = [Length.Meter, null, Length._MilliMeter];
|
||||
private static readonly List<Length> unitsList = [Length.Meter, Length._MilliMeter];
|
||||
private static readonly List<Length?> nullableUnitsList = [Length.Meter, null, Length._MilliMeter];
|
||||
|
||||
// Коллекции double
|
||||
private static readonly double[] doubleArray = new double[] { 200.0, 300.0 };
|
||||
private static readonly double?[] nullableDoubleArray = new double?[] { 200.0, null, 300.0 };
|
||||
private static readonly List<double> doubleList = new List<double> { 200.0, 300.0 };
|
||||
private static readonly List<double?> nullableDoubleList = new List<double?> { 200.0, null, 300.0 };
|
||||
private static readonly double[] doubleArray = [200.0, 300.0];
|
||||
private static readonly double?[] nullableDoubleArray = [200.0, null, 300.0];
|
||||
private static readonly List<double> doubleList = [200.0, 300.0];
|
||||
private static readonly List<double?> nullableDoubleList = [200.0, null, 300.0];
|
||||
|
||||
// ====================== 1. T[] + double ======================
|
||||
[Fact]
|
||||
@@ -303,7 +303,7 @@
|
||||
[Fact]
|
||||
public void Plus_NullArray_ReturnsNull()
|
||||
{
|
||||
Length[] nullArray = null;
|
||||
Length[] nullArray = null!;
|
||||
var result = nullArray.Plus<Length>(5.0);
|
||||
Assert.Null(result);
|
||||
}
|
||||
@@ -311,7 +311,7 @@
|
||||
[Fact]
|
||||
public void Plus_NullList_ReturnsNull()
|
||||
{
|
||||
List<Length> nullList = null;
|
||||
List<Length> nullList = null!;
|
||||
var result = nullList.Plus<Length>(5.0);
|
||||
Assert.Null(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user