Skip to content

Commit 3c0dc19

Browse files
authored
typo: fix a lot of typos (#1555)
1 parent 10903b0 commit 3c0dc19

File tree

43 files changed

+102
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+102
-103
lines changed

src/Magick.NET.Core/Profiles/Exif/ExifReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void AddValues(Collection<IExifValue> values, uint index)
142142
}
143143

144144
if (value is null)
145-
_data.InvalidTags.Add(new UnkownExifTag(tag));
145+
_data.InvalidTags.Add(new UnknownExifTag(tag));
146146

147147
_reader.Seek(oldIndex + 4);
148148

src/Magick.NET.Core/Profiles/Exif/Tags/UnkownExifTag.cs renamed to src/Magick.NET.Core/Profiles/Exif/Tags/UnknownExifTag.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
namespace ImageMagick;
55

6-
internal sealed class UnkownExifTag : ExifTag
6+
internal sealed class UnknownExifTag : ExifTag
77
{
8-
internal UnkownExifTag(ExifTagValue value)
8+
internal UnknownExifTag(ExifTagValue value)
99
: base((ushort)value)
1010
{
1111
}

src/Magick.NET.Core/Profiles/Exif/Values/ExifValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public ExifValue(ExifTag tag)
1111
=> Tag = tag;
1212

1313
public ExifValue(ExifTagValue tag)
14-
=> Tag = new UnkownExifTag(tag);
14+
=> Tag = new UnknownExifTag(tag);
1515

1616
public abstract ExifDataType DataType { get; }
1717

src/Magick.NET.SourceGenerator/CodeBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ internal sealed class CodeBuilder
1414

1515
public void Append(int value)
1616
{
17-
AppendIdentation();
17+
AppendIndentation();
1818
_builder.Append(value);
1919
}
2020

2121
public void Append(params string?[] values)
2222
{
23-
AppendIdentation();
23+
AppendIndentation();
2424

2525
foreach (var value in values)
2626
_builder.Append(value);
@@ -57,7 +57,7 @@ public void AppendReturnsComment(string comment)
5757
public void AppendLine(params string?[] values)
5858
{
5959
if (values.Length > 0)
60-
AppendIdentation();
60+
AppendIndentation();
6161

6262
foreach (var value in values)
6363
_builder.Append(value);
@@ -82,7 +82,7 @@ public void AppendQuantumType()
8282
public override string ToString()
8383
=> _builder.ToString();
8484

85-
private void AppendIdentation()
85+
private void AppendIndentation()
8686
{
8787
if (_indentationWritten)
8888
return;

src/Magick.NET/Types/PointInfoCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public static void DisposeList(IntPtr instance)
4242
return;
4343
}
4444

45-
var nativeIstance = new NativePointInfoCollection(instance);
46-
nativeIstance.Dispose();
45+
var nativeInstance = new NativePointInfoCollection(instance);
46+
nativeInstance.Dispose();
4747
}
4848

4949
public void Dispose()

tests/Magick.NET.Core.Tests/Profiles/EndianReaderTests/TheSeekMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Magick.NET.Core.Tests;
88

99
public partial class EndianReaderTests
1010
{
11-
public class TheSeekMetod
11+
public class TheSeekMethod
1212
{
1313
[Fact]
1414
public void ShouldReturnFalseWhenIndexIsTooHigh()

tests/Magick.NET.Core.Tests/Profiles/Exif/ExifProfileTests/TheToByteArrayMethod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public void ShouldReturnEmptyArrayWhenAllValuesAreInvalid()
2626

2727
var profile = new ExifProfile(bytes);
2828

29-
var unkownTag = new ExifTag<uint>((ExifTagValue)298);
30-
var value = profile.GetValue<uint>(unkownTag);
29+
var unknownTag = new ExifTag<uint>((ExifTagValue)298);
30+
var value = profile.GetValue<uint>(unknownTag);
3131
Assert.Equal(42U, value.GetValue());
3232
Assert.Equal("42", value.ToString());
3333

tests/Magick.NET.Core.Tests/Profiles/ImageProfileTests/TheGetDataMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public partial class ImageProfileTests
1111
public class TheGetDataMethod
1212
{
1313
[Fact]
14-
public void ShouldReturNullWhenDataIsNull()
14+
public void ShouldReturnNullWhenDataIsNull()
1515
{
1616
var profile = new TestProfile();
1717
var bytes = profile.GetData();

tests/Magick.NET.Core.Tests/Profiles/Iptc/IptcProfileTests/TheSetValueMethod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class TheSetValueMethod
2828
[InlineData(IptcTag.Contact)]
2929
[InlineData(IptcTag.LocalCaption)]
3030
[InlineData(IptcTag.CaptionWriter)]
31-
public void ShouldAllowDuplicateValuesForValuesThatCanBeRepated(IptcTag tag)
31+
public void ShouldAllowDuplicateValuesForValuesThatCanBeRepeated(IptcTag tag)
3232
{
3333
var profile = new IptcProfile();
3434
var expectedValue1 = "test";
@@ -77,7 +77,7 @@ public void ShouldAllowDuplicateValuesForValuesThatCanBeRepated(IptcTag tag)
7777
[InlineData(IptcTag.Caption)]
7878
[InlineData(IptcTag.ImageType)]
7979
[InlineData(IptcTag.ImageOrientation)]
80-
public void ShoulNotdAllowDuplicateValuesForValuesThatCannotBeRepated(IptcTag tag)
80+
public void ShouldNotAllowDuplicateValuesForValuesThatCannotBeRepeated(IptcTag tag)
8181
{
8282
var profile = new IptcProfile();
8383
var expectedValue = "another one";

tests/Magick.NET.Core.Tests/Types/ThresholdTests/TheToStringMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public partial class ThresholdTests
1111
public class TheToStringMethod
1212
{
1313
[Fact]
14-
public void ShouldReturnSingleValueWhenOnlyMimimumIsSet()
14+
public void ShouldReturnSingleValueWhenOnlyMinimumIsSet()
1515
{
1616
var point = new Threshold(1.2);
1717
Assert.Equal("1.2", point.ToString());

0 commit comments

Comments
 (0)