Rename NumberOfElements to Count
This commit is contained in:
parent
6cd9ffac47
commit
404096bc8a
@ -241,7 +241,7 @@ namespace MatFileHandler.Tests
|
||||
Assert.That(expected.FieldNames, Is.EquivalentTo(actual.FieldNames));
|
||||
foreach (var name in expected.FieldNames)
|
||||
{
|
||||
for (var i = 0; i < expected.NumberOfElements; i++)
|
||||
for (var i = 0; i < expected.Count; i++)
|
||||
{
|
||||
CompareMatArrays(expected[name, i], actual[name, i]);
|
||||
}
|
||||
@ -252,7 +252,7 @@ namespace MatFileHandler.Tests
|
||||
{
|
||||
Assert.That(actual, Is.Not.Null);
|
||||
Assert.That(expected.Dimensions, Is.EqualTo(actual.Dimensions));
|
||||
for (var i = 0; i < expected.NumberOfElements; i++)
|
||||
for (var i = 0; i < expected.Count; i++)
|
||||
{
|
||||
CompareMatArrays(expected[i], actual[i]);
|
||||
}
|
||||
|
@ -20,9 +20,9 @@ namespace MatFileHandler
|
||||
int[] Dimensions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of elements in the array.
|
||||
/// Gets the total number of elements in the array.
|
||||
/// </summary>
|
||||
int NumberOfElements { get; }
|
||||
int Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Tries to convert the array to an array of Double values.
|
||||
|
@ -34,7 +34,7 @@ namespace MatFileHandler
|
||||
public string Name { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public int NumberOfElements => Dimensions.NumberOfElements();
|
||||
public int Count => Dimensions.NumberOfElements();
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsEmpty => Dimensions.Length == 0;
|
||||
|
@ -524,7 +524,7 @@ namespace MatFileHandler
|
||||
|
||||
private void WriteStructureArrayValues(BinaryWriter writer, IStructureArray array)
|
||||
{
|
||||
for (var i = 0; i < array.NumberOfElements; i++)
|
||||
for (var i = 0; i < array.Count; i++)
|
||||
{
|
||||
foreach (var name in array.FieldNames)
|
||||
{
|
||||
@ -556,7 +556,7 @@ namespace MatFileHandler
|
||||
|
||||
private void WriteCellArrayValues(BinaryWriter writer, ICellArray array)
|
||||
{
|
||||
for (var i = 0; i < array.NumberOfElements; i++)
|
||||
for (var i = 0; i < array.Count; i++)
|
||||
{
|
||||
WriteArray(writer, array[i]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user