Skip to content

Commit

Permalink
naming adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
yashaka committed May 13, 2021
1 parent 9ddac9e commit 7f98d1c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down
8 changes: 4 additions & 4 deletions NSelene/NSelene.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down
2 changes: 1 addition & 1 deletion NSelene/Wait.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> With(
Expand Down
8 changes: 4 additions & 4 deletions NSeleneTests/Integration/SharedDriver/Harness/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
// }
// };
Expand Down

0 comments on commit 7f98d1c

Please sign in to comment.