From 7996d57cf491d23ea3e330cbff40793b0b7f2512 Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Fri, 4 Aug 2023 07:27:41 -0700 Subject: [PATCH] Housekeeping: parameterised => parameterized. --- test/Autofac.Test/ResolutionExtensionsTests.cs | 10 +++++----- .../Parameterized.cs} | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) rename test/Autofac.Test/Scenarios/{Parameterisation/Parameterised.cs => Parameterization/Parameterized.cs} (70%) diff --git a/test/Autofac.Test/ResolutionExtensionsTests.cs b/test/Autofac.Test/ResolutionExtensionsTests.cs index 292adbb4f..dd32f2de1 100644 --- a/test/Autofac.Test/ResolutionExtensionsTests.cs +++ b/test/Autofac.Test/ResolutionExtensionsTests.cs @@ -4,7 +4,7 @@ using Autofac.Core; using Autofac.Core.Activators.ProvidedInstance; using Autofac.Core.Registration; -using Autofac.Test.Scenarios.Parameterisation; +using Autofac.Test.Scenarios.Parameterization; using Autofac.Test.Scenarios.WithProperty; namespace Autofac.Test; @@ -61,11 +61,11 @@ public void WhenServiceNotRegistered_ResolveOptionalReturnsNull() public void WhenParametersProvided_ResolveOptionalSuppliesThemToComponent() { var cb = new ContainerBuilder(); - cb.RegisterType(); + cb.RegisterType(); var container = cb.Build(); const string param1 = "Hello"; const int param2 = 42; - var result = container.ResolveOptional( + var result = container.ResolveOptional( new NamedParameter("a", param1), new NamedParameter("b", param2)); Assert.NotNull(result); @@ -80,7 +80,7 @@ public void WhenPredicateAndValueParameterSupplied_PassedToComponent() const int b = 42; var builder = new ContainerBuilder(); - builder.RegisterType() + builder.RegisterType() .WithParameter( (pi, c) => pi.Name == "a", (pi, c) => a) @@ -89,7 +89,7 @@ public void WhenPredicateAndValueParameterSupplied_PassedToComponent() (pi, c) => b); var container = builder.Build(); - var result = container.Resolve(); + var result = container.Resolve(); Assert.Equal(a, result.A); Assert.Equal(b, result.B); diff --git a/test/Autofac.Test/Scenarios/Parameterisation/Parameterised.cs b/test/Autofac.Test/Scenarios/Parameterization/Parameterized.cs similarity index 70% rename from test/Autofac.Test/Scenarios/Parameterisation/Parameterised.cs rename to test/Autofac.Test/Scenarios/Parameterization/Parameterized.cs index 01a81768b..dd60d5e0e 100644 --- a/test/Autofac.Test/Scenarios/Parameterisation/Parameterised.cs +++ b/test/Autofac.Test/Scenarios/Parameterization/Parameterized.cs @@ -1,15 +1,15 @@ // Copyright (c) Autofac Project. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. -namespace Autofac.Test.Scenarios.Parameterisation; +namespace Autofac.Test.Scenarios.Parameterization; -public class Parameterised +public class Parameterized { public string A { get; private set; } public int B { get; private set; } - public Parameterised(string a, int b) + public Parameterized(string a, int b) { A = a; B = b;