From 7f98d1cc209b44e74e959a95299a7c975615b45c Mon Sep 17 00:00:00 2001 From: Iakiv Kramarenko Date: Fri, 14 May 2021 01:46:44 +0300 Subject: [PATCH] naming adjustments --- CHANGELOG.md | 8 ++++---- NSelene/NSelene.csproj | 8 ++++---- NSelene/Wait.cs | 2 +- NSeleneTests/Integration/SharedDriver/Harness/BaseTest.cs | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 968281a..3e18efa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,16 +19,16 @@ - by default equals to null, making internally call waiting algorithm for actions as it is, without additional customization - specified to something like: ``` - Configuration._HookWaitAction = (entity_object, describe_computation, wait) => { - Console.WriteLine($"STARTED WAITING FOR: {entity_object}.{describe_computation()}"); + Configuration._HookWaitAction = (entityObject, describeComputation, wait) => { + Console.WriteLine($"STARTED WAITING FOR: {entityObject}.{describeComputation()}"); try { wait(); - Console.WriteLine($"FINISHED WAITING FOR: {entity_object}.{describe_computation()}"); + Console.WriteLine($"FINISHED WAITING FOR: {entityObject}.{describeComputation()}"); } catch (Exception error) { - Console.WriteLine($"FAILED WAITING FOR: {entity_object}.{describe_computation()}"); + Console.WriteLine($"FAILED WAITING FOR: {entityObject}.{describeComputation()}"); throw error; } }; diff --git a/NSelene/NSelene.csproj b/NSelene/NSelene.csproj index 7466da0..2c72080 100644 --- a/NSelene/NSelene.csproj +++ b/NSelene/NSelene.csproj @@ -33,16 +33,16 @@ - by default equals to null, making internally call waiting algorithm for actions as it is, without additional customization - specified to something like: ``` - Configuration._HookWaitAction = (entity_object, describe_computation, wait) => { - Console.WriteLine($"STARTED WAITING FOR: {entity_object}.{describe_computation()}"); + Configuration._HookWaitAction = (entityObject, describeComputation, wait) => { + Console.WriteLine($"STARTED WAITING FOR: {entityObject}.{describeComputation()}"); try { wait(); - Console.WriteLine($"FINISHED WAITING FOR: {entity_object}.{describe_computation()}"); + Console.WriteLine($"FINISHED WAITING FOR: {entityObject}.{describeComputation()}"); } catch (Exception error) { - Console.WriteLine($"FAILED WAITING FOR: {entity_object}.{describe_computation()}"); + Console.WriteLine($"FAILED WAITING FOR: {entityObject}.{describeComputation()}"); throw error; } }; diff --git a/NSelene/Wait.cs b/NSelene/Wait.cs index f5acdb1..e06ba3b 100644 --- a/NSelene/Wait.cs +++ b/NSelene/Wait.cs @@ -133,7 +133,7 @@ public Wait( this.timeout = timeout; this.polling = polling; this.describeComputation = _describeComputation ?? (name => name); - this._HookAction = _hookAction ?? ((entity_object, describeComputation, wait) => wait()); + this._HookAction = _hookAction ?? ((entityObject, describeComputation, wait) => wait()); } public Wait With( diff --git a/NSeleneTests/Integration/SharedDriver/Harness/BaseTest.cs b/NSeleneTests/Integration/SharedDriver/Harness/BaseTest.cs index b7d511f..4a7699f 100644 --- a/NSeleneTests/Integration/SharedDriver/Harness/BaseTest.cs +++ b/NSeleneTests/Integration/SharedDriver/Harness/BaseTest.cs @@ -36,17 +36,17 @@ public void initDriver() Configuration.ClickByJs = false; Configuration.WaitForNoOverlapFoundByJs = false; - // Configuration._HookWaitAction = (entity_object, describe_computation, wait) => + // Configuration._HookWaitAction = (entityObject, describeComputation, wait) => // { - // TestContext.Progress.WriteLine($"STARTED WAITING FOR: {entity_object}.{describe_computation()}"); + // TestContext.Progress.WriteLine($"STARTED WAITING FOR: {entityObject}.{describeComputation()}"); // try // { // wait(); - // TestContext.Progress.WriteLine($"FINISHED WAITING FOR: {entity_object}.{describe_computation()}"); + // TestContext.Progress.WriteLine($"FINISHED WAITING FOR: {entityObject}.{describeComputation()}"); // } // catch (Exception error) // { - // TestContext.Progress.WriteLine($"FAILED WAITING FOR: {entity_object}.{describe_computation()}"); + // TestContext.Progress.WriteLine($"FAILED WAITING FOR: {entityObject}.{describeComputation()}"); // throw error; // } // };