Skip to content

Commit

Permalink
Using Debug.Fail (#24752)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergerGood authored Apr 26, 2021
1 parent 2091aa5 commit 90f8575
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public override object? this[string keyword]
return;

default:
Debug.Assert(false, "Unexpected keyword: " + keyword);
Debug.Fail("Unexpected keyword: " + keyword);
return;
}
}
Expand Down Expand Up @@ -397,7 +397,7 @@ public override bool TryGetValue(string keyword, out object? value)
return DefaultTimeout;

default:
Debug.Assert(false, "Unexpected keyword: " + index);
Debug.Fail("Unexpected keyword: " + index);
return null;
}
}
Expand Down Expand Up @@ -440,7 +440,7 @@ private void Reset(Keywords index)
return;

default:
Debug.Assert(false, "Unexpected keyword: " + index);
Debug.Fail("Unexpected keyword: " + index);
return;
}
}
Expand Down

0 comments on commit 90f8575

Please # to comment.