Skip to content

Commit 11336e2

Browse files
hughbestephentoub
authored andcommitted
Fix typos in test names (dotnet/corefx#39025)
Commit migrated from dotnet/corefx@59d4a3e
1 parent 413639c commit 11336e2

12 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ public void SetByIndex()
14891489
}
14901490

14911491
[Fact]
1492-
public void SetByIndex_InvalidIndex_ThrowsArgumentOutOfRangeExeption()
1492+
public void SetByIndex_InvalidIndex_ThrowsArgumentOutOfRangeException()
14931493
{
14941494
SortedList sortList1 = Helpers.CreateIntSortedList(100);
14951495
Helpers.PerformActionOnAllSortedListWrappers(sortList1, sortList2 =>

src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ public void CompositionContainer_CanBeExported()
23612361
}
23622362

23632363
[Fact]
2364-
public void ReleaseExport_Null_ShouldThrowArugmentNull()
2364+
public void ReleaseExport_Null_ShouldThrowArgumentNull()
23652365
{
23662366
var container = CreateCompositionContainer();
23672367

src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/DirectoryCatalogTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ public void Dispose_CanBeCalledMultipleTimes()
229229
}
230230

231231
[Fact]
232-
public void AddAssembly1_NullPathArgument_ShouldThrowArugmentNull()
232+
public void AddAssembly1_NullPathArgument_ShouldThrowArgumentNull()
233233
{
234234
Assert.Throws<ArgumentNullException>(() =>
235235
new DirectoryCatalog((string)null));
236236
}
237237

238238
[Fact]
239-
public void AddAssembly1_EmptyPathArgument_ShouldThrowArugment()
239+
public void AddAssembly1_EmptyPathArgument_ShouldThrowArgument()
240240
{
241241
Assert.Throws<ArgumentException>(() =>
242242
new DirectoryCatalog(""));

src/libraries/System.Console/tests/WindowAndCursorProps.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static void NonRedirectedCursorVisible()
186186

187187
[Fact]
188188
[PlatformSpecific(TestPlatforms.AnyUnix)] // Expected behavior specific to Unix
189-
public static void CursorVisible_GetUnix_ThrowsPlatformNotSupportedExeption()
189+
public static void CursorVisible_GetUnix_ThrowsPlatformNotSupportedException()
190190
{
191191
Assert.Throws<PlatformNotSupportedException>(() => Console.CursorVisible);
192192
}

src/libraries/System.Data.Common/src/System/Data/xmlsaver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,7 @@ private void SetMSDataAttribute(XmlElement root, Type type)
22212221
if (!string.IsNullOrEmpty(result))
22222222
{
22232223
// SetAttribute doesn't fail with invalid data, but the final XmlDocument.Save will fail later
2224-
// with the ArugmentException when calling the actual XmlWriter.SetAttribute
2224+
// with the ArgumentException when calling the actual XmlWriter.SetAttribute
22252225
root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, result);
22262226
}
22272227
}

src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,13 @@ public static void PropertyOrField_NoSuchPropertyOrField_ThrowsArgumentException
539539
}
540540

541541
[Fact]
542-
public static void MakeMemberAccess_NullMember_ThrowsArgumentNullExeption()
542+
public static void MakeMemberAccess_NullMember_ThrowsArgumentNullException()
543543
{
544544
AssertExtensions.Throws<ArgumentNullException>("member", () => Expression.MakeMemberAccess(Expression.Constant(new PC()), null));
545545
}
546546

547547
[Fact]
548-
public static void MakeMemberAccess_MemberNotFieldOrProperty_ThrowsArgumentExeption()
548+
public static void MakeMemberAccess_MemberNotFieldOrProperty_ThrowsArgumentException()
549549
{
550550
MemberInfo member = typeof(NonGenericClass).GetEvent("Event");
551551

src/libraries/System.Linq.Expressions/tests/New/NewTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public static void StaticConstructor_ThrowsArgumentException()
285285

286286
[Theory]
287287
[ClassData(typeof(CompilationTypes))]
288-
public static void Compile_AbstractCtor_ThrowsInvalidOperationExeption(bool useInterpretation)
288+
public static void Compile_AbstractCtor_ThrowsInvalidOperationException(bool useInterpretation)
289289
{
290290
ConstructorInfo ctor = typeof(AbstractCtor).GetTypeInfo().DeclaredConstructors.Single();
291291
Expression<Func<AbstractCtor>> f = Expression.Lambda<Func<AbstractCtor>>(Expression.New(ctor));
@@ -329,7 +329,7 @@ public static void ConstructorAndArguments_DifferentLengths_ThrowsArgumentExcept
329329
}
330330

331331
[Fact]
332-
public static void Arguments_ExpressionNotReadable_ThrowsArgumentExeption()
332+
public static void Arguments_ExpressionNotReadable_ThrowsArgumentException()
333333
{
334334
ConstructorInfo constructor = typeof(ClassWithCtors).GetConstructor(new Type[] { typeof(string) });
335335
Expression[] expressions = new Expression[] { Expression.Property(null, typeof(Unreachable<string>), nameof(Unreachable<string>.WriteOnly)) };

src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests_Join.netcoreapp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void JoinFourPaths(string path1, string path2, string path3, string path4
192192
}
193193

194194
[Fact]
195-
public void JoinStringArray_ThrowsArugmentNullException()
195+
public void JoinStringArray_ThrowsArgumentNullException()
196196
{
197197
Assert.Throws<ArgumentNullException>(() => Path.Join(null));
198198
}

src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PtrToStringAnsiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void PtrToStringAnsi_ZeroPointer_ThrowsArgumentNullException()
4949
}
5050

5151
[Fact]
52-
public void PtrToStringAnsi_NegativeLength_ThrowsArgumentOutOfRangeExeption()
52+
public void PtrToStringAnsi_NegativeLength_ThrowsArgumentOutOfRangeException()
5353
{
5454
AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("len", null, () => Marshal.PtrToStringAnsi(new IntPtr(123), -77));
5555
}

src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PtrToStringUniTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void PtrToStringUni_ZeroPointer_ThrowsArgumentNullException()
4949
}
5050

5151
[Fact]
52-
public void PtrToStringUni_NegativeLength_ThrowsArgumentOutOfRangeExeption()
52+
public void PtrToStringUni_NegativeLength_ThrowsArgumentOutOfRangeException()
5353
{
5454
AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("len", null, () => Marshal.PtrToStringUni(new IntPtr(123), -77));
5555
}

0 commit comments

Comments
 (0)