-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Поправил регулярку. Теперь правильно парсятся нецелые и отрицательные…
… числа .
- Loading branch information
rincew1nd
committed
Nov 24, 2016
1 parent
0a18af1
commit 56bc70c
Showing
5 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ UnitTests/bin/ | |
UnitTests/obj/ | ||
CodeTranslator/obj/ | ||
CodeTranslator/bin/ | ||
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace UnitTests | ||
{ | ||
static class Utils | ||
{ | ||
public static object PrivateMethod(this object obj, string method, params object[] text) | ||
{ | ||
var mi = obj.GetType().GetMethod(method, BindingFlags.NonPublic | BindingFlags.Instance); | ||
return mi != null ? mi.Invoke(obj, text) : null; | ||
} | ||
} | ||
} |