Skip to content

Commit 27adb80

Browse files
Formal changes / fixed spelling errors
1 parent 55f4467 commit 27adb80

File tree

12 files changed

+42
-28
lines changed

12 files changed

+42
-28
lines changed

Docs.IndexGenerator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static string GenerateListItems(PluginConfig cfg)
195195
var sb = new System.Text.StringBuilder();
196196
foreach (var e in cfg.Entries)
197197
{
198-
string href = $"{Uri.EscapeUriString(e.Path)}/index.html";
198+
string href = $"{Uri.EscapeDataString(e.Path)}/index.html";
199199
sb.AppendLine($" <li><a href=\"{href}\"><strong>{EscapeHtml(e.Title)}</strong></a> — {EscapeHtml(e.Description ?? "")}</li>");
200200
}
201201
return sb.ToString();

NanoXLSX.Core/AssemblyInfo.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,23 @@
77
// Core packages
88
[assembly: InternalsVisibleTo("NanoXLSX.Writer")]
99
[assembly: InternalsVisibleTo("NanoXLSX.Reader")]
10-
// Test packages
10+
// Included test packages
1111
[assembly: InternalsVisibleTo("NanoXLSX.Core.Test")]
1212
[assembly: InternalsVisibleTo("NanoXLSX.Writer-Reader.Test")]
1313
// Plug-ins (backlog / reserved)
1414
[assembly: InternalsVisibleTo("NanoXLSX.Formula")]
1515
[assembly: InternalsVisibleTo("NanoXLSX.Security")]
1616
[assembly: InternalsVisibleTo("NanoXLSX.Formatting")]
17+
[assembly: InternalsVisibleTo("NanoXLSX.Data")]
18+
[assembly: InternalsVisibleTo("NanoXLSX.Essentials")]
19+
[assembly: InternalsVisibleTo("NanoXLSX.Automatization")]
20+
[assembly: InternalsVisibleTo("NanoXLSX.Chart")]
21+
[assembly: InternalsVisibleTo("NanoXLSX.Compatibility")]
22+
// Plug-in Tests (backlog / reserved)
23+
[assembly: InternalsVisibleTo("NanoXLSX.Formula.Test")]
24+
[assembly: InternalsVisibleTo("NanoXLSX.Security.Test")]
25+
[assembly: InternalsVisibleTo("NanoXLSX.Formatting.Test")]
26+
[assembly: InternalsVisibleTo("NanoXLSX.Essentials.Test")]
27+
[assembly: InternalsVisibleTo("NanoXLSX.Automatization.Test")]
28+
[assembly: InternalsVisibleTo("NanoXLSX.Chart.Test")]
29+
[assembly: InternalsVisibleTo("NanoXLSX.Compatibility.Test")]

NanoXLSX.Core/Shortener.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
namespace NanoXLSX
1212
{
1313
/// <summary>
14-
/// Class to provide access to the current worksheet with a shortened syntax. Note: The WS object can be null if the workbook was created without a worksheet.
15-
/// The object will be available as soon as the current worksheet is defined
14+
/// Class to provide access to the current worksheet with a shortened syntax.
1615
/// </summary>
16+
/// \remark <remarks>Note: The WS object can be null if the workbook was created without a worksheet.
17+
/// The object will be available as soon as the current worksheet is defined.</remarks>
1718
public class Shortener
1819
{
1920
private Worksheet currentWorksheet;

NanoXLSX.Core/Worksheet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2771,7 +2771,7 @@ private static string GetUnusedWorksheetName(string name, Workbook workbook)
27712771
if (match.Groups.Count > 1)
27722772
{
27732773
prefix = match.Groups[1].Value;
2774-
int.TryParse(match.Groups[2].Value, out number);
2774+
_ = int.TryParse(match.Groups[2].Value, out number);
27752775
// if this failed, the start number is 0 (parsed number was >max. int32)
27762776
}
27772777
while (true)

NanoXLSX.Writer-Reader.Test/Style/WriteRead/FontWriteReadTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ public void NameFontTest(string styleValue, object value)
141141
[InlineData(FontFamilyValue.Reserved7, uint.MaxValue, uint.MaxValue)]
142142
[InlineData(FontFamilyValue.Reserved8, ulong.MaxValue, ulong.MaxValue)]
143143
[InlineData(FontFamilyValue.Reserved9, SByte.MaxValue, 127)]
144-
public void FamilyFontTest(FontFamilyValue styleValue, object givenValue, object expectdValue)
144+
public void FamilyFontTest(FontFamilyValue styleValue, object givenValue, object expectedValue)
145145
{
146146
Style style = new Style();
147147

148148
style.CurrentFont.Family = styleValue;
149-
Cell cell = TestUtils.SaveAndReadStyledCell(givenValue, expectdValue, style, "A1");
149+
Cell cell = TestUtils.SaveAndReadStyledCell(givenValue, expectedValue, style, "A1");
150150
Assert.Equal(styleValue, cell.CellStyle.CurrentFont.Family);
151151
}
152152

NanoXlsx.Core.Test/Cells/CellTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,11 @@ public void EqualsFailTest4()
346346
[InlineData("=A2", CellType.Default, CellType.String)]
347347
[InlineData("", CellType.Default, CellType.String)]
348348
[InlineData(null, CellType.Default, CellType.Empty)]
349-
public void ResolveCellTypeTest(object givenValue, CellType givenCellType, CellType expectedCllType)
349+
public void ResolveCellTypeTest(object givenValue, CellType givenCellType, CellType expectedCellType)
350350
{
351351
Cell cell = new Cell(givenValue, givenCellType, this.cellAddress);
352352
cell.ResolveCellType();
353-
Assert.Equal(expectedCllType, cell.DataType);
353+
Assert.Equal(expectedCellType, cell.DataType);
354354
}
355355

356356
[Fact(DisplayName = "Test of the CompareTo method for dates and times")]

NanoXlsx.Core.Test/Cells/Types/ConvertArrayTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void ConvertSByteArrayTest()
2929
}
3030

3131
[Fact(DisplayName = "Test of the ConvertArray method on decimal")]
32-
public void ConvertDecimaleArrayTest()
32+
public void ConvertDecimalArrayTest()
3333
{
3434
decimal[] array = new decimal[] { 0, 11.7m, 0.00001m, -22.5m, 100, -99, decimal.MinValue, decimal.MaxValue };
3535
AssertArray<decimal>(array, typeof(decimal));

NanoXlsx.Core.Test/Misc/LegacyPasswordTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public void PasswordHashTest(string passwordHash)
5757
[InlineData(" ", " ")]
5858
[InlineData(null, null)]
5959
[InlineData("", null)]
60-
public void GetAndSetPasswordTest(string givenPassword, string expectedpassword)
60+
public void GetAndSetPasswordTest(string givenPassword, string expectedPassword)
6161
{
6262
LegacyPassword password = new LegacyPassword(LegacyPassword.PasswordType.WorkbookProtection);
6363
Assert.Null(password.GetPassword());
6464
password.SetPassword(givenPassword);
65-
Assert.Equal(expectedpassword, password.GetPassword());
65+
Assert.Equal(expectedPassword, password.GetPassword());
6666
}
6767

6868
[Theory(DisplayName = "Test of the UnsetPassword function (legacy)")]

NanoXlsx.Core.Test/Styles/FontTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public void ColorValueFailTest(string value)
256256
[InlineData(SchemeValue.Major)]
257257
[InlineData(SchemeValue.Minor)]
258258
[InlineData(SchemeValue.None)]
259-
public void SchmeTest(SchemeValue value)
259+
public void SchemeTest(SchemeValue value)
260260
{
261261
Font font = new Font();
262262
Assert.Equal(Font.DefaultFontScheme, font.Scheme); // default is minor

NanoXlsx.Core.Test/Utils/ComparatorsTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public class ComparatorsTest
2020
[InlineData(null, "", true)] // Exception
2121
[InlineData(null, " ", false)]
2222
[InlineData(null, "ABC", false)]
23-
public void CompareSecureStringsTest(string plaintext1, string plaintext2, bool excpectedEqual)
23+
public void CompareSecureStringsTest(string plainText1, string plainText2, bool expectedEqual)
2424
{
25-
SecureString sstr1 = GetSecureString(plaintext1);
26-
SecureString sstr2 = GetSecureString(plaintext2);
25+
SecureString sstr1 = GetSecureString(plainText1);
26+
SecureString sstr2 = GetSecureString(plainText2);
2727
bool isEqual = Comparators.CompareSecureStrings(sstr1, sstr2);
28-
Assert.Equal(excpectedEqual, isEqual);
28+
Assert.Equal(expectedEqual, isEqual);
2929
isEqual = Comparators.CompareSecureStrings(sstr2, sstr1); // reverse
30-
Assert.Equal(excpectedEqual, isEqual);
30+
Assert.Equal(expectedEqual, isEqual);
3131
}
3232

3333
[Theory(DisplayName = "Test of the comparator function CompareDiomensions")]

0 commit comments

Comments
 (0)