Skip to content

Instantly share code, notes, and snippets.

'Validate if application is running in DEBUG
Public Function GetRunningInIDE() As Boolean
Dim X As Long
Debug.Assert Not TestIDE(X)
GetRunningInIDE = X = 1
End Function
Private Function TestIDE(X As Long) As Boolean
X = 1
End Function
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class TurkeyTestMethodAttribute
: Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
{
public const System.String TurkeyCulture = "tr-TR";
public override TestResult[] Execute(ITestMethod testMethod)
{
var currentCulture = Thread.CurrentThread.CurrentCulture;

Keybase proof

I hereby claim:

  • I am donkedero on github.
  • I am don_kedero (https://keybase.io/don_kedero) on keybase.
  • I have a public key ASB7Fr9bvUFIUi4jsw6TQBu1UTWmJznl9ZsWTeeilESe1Qo

To claim this, I am signing this object: