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
param( | |
[string]$server = "origin", | |
[string]$branch = "master" | |
) | |
$gitStatus = (Get-GitStatus) | |
if ($gitStatus -eq $null) { | |
write-error "Not in a Git repository." | |
} elseif ($gitStatus.HasUntracked -or $gitStatus.HasWorking -or $gitStatus.HasIndex) { |
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
src\xunit\Sdk\Executor.cs | |
15: /// ExecutorWrapper instead. | |
src\xunit.runner.msbuild\Utility\XmlTestRunner.cs | |
8: public XmlTestRunner(IExecutorWrapper executorWrapper, IRunnerLogger logger) | |
10: testRunner = new TestRunner(executorWrapper, logger); | |
src\xunit.runner.msbuild\xunit.cs | |
98: using (ExecutorWrapper wrapper = new ExecutorWrapper(assemblyFilename, configFilename, ShadowCopy)) | |
src\xunit.runner.msbuild\xunitproject.cs | |
48: using (ExecutorWrapper wrapper = new ExecutorWrapper(assembly.AssemblyFilename, assembly.ConfigFilename, assembly.ShadowCopy)) | |
src\xunit.runner.tdnet\TdNetRunner.cs |
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
[user] | |
name = Brad Wilson | |
email = dotnetguy@gmail.com | |
[alias] | |
a = add -A | |
abort = rebase --abort | |
amend = commit --amend -C HEAD | |
bl = blame -w -M -C | |
br = branch | |
cat = cat-file -t |
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
[Fact] | |
public void Monkey() | |
{ | |
string schema = | |
@"{ | |
""id"": ""System.Version"", | |
""type"": ""object"", | |
""additionalProperties"": false, | |
""properties"": { | |
""Major"": { |
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
param( | |
[string]$pattern = "*.*", | |
[ValidateSet("md5", "sha1", "sha256", "sha384", "sha512")]$algorithm = "sha1", | |
[switch]$recurse | |
) | |
[Reflection.Assembly]::LoadWithPartialName("System.Security") | out-null | |
if ($algorithm -eq "sha1") { | |
$hashimpl = new-Object System.Security.Cryptography.SHA1Managed |
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
using System.Runtime.CompilerServices; | |
using Microsoft.FxCop.Sdk; | |
namespace Tier3.FxCop.TaskRules | |
{ | |
public class NameTaskReturningMethodAppropriately : BaseIntrospectionRule | |
{ | |
public NameTaskReturningMethodAppropriately() : | |
base("NameTaskReturningMethodAppropriately", | |
"Tier3.FxCop.Rules", |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public interface IIndexedEnumerable<TKey, TValue> | |
{ | |
TValue this[TKey key] { get; } | |
int Count { get; } |
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
using System; | |
using System.Collections.Generic; | |
using System.Net.Http; | |
using System.Web.Http; | |
using System.Web.Http.Controllers; | |
using System.Web.Http.Hosting; | |
using System.Web.Http.Routing; | |
using Newtonsoft.Json.Converters; | |
using Newtonsoft.Json.Serialization; | |
using NSubstitute; |
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
Unhandled Exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. | |
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) | |
at System.Collections.Generic.List`1.Enumerator.MoveNextRare() | |
at System.Collections.Generic.List`1.Enumerator.MoveNext() | |
at Ninject.Infrastructure.Language.ExtensionsForIEnumerableOfT.Map[T](IEnumerable`1 series, Action`1 action) in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Infrastructure\Language\ExtensionsForIEnumerableOfT.cs:line 22 | |
at Ninject.Activation.Caching.GarbageCollectionCachePruner.PruneCacheIfGarbageCollectorHasRun(Object state) in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Activation\Caching\GarbageCollectionCachePruner.cs:line 83 | |
at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state) | |
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) | |
at |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using Ninject.Activation.Caching; | |
using Ninject.Components; | |
using Ninject.Modules; | |
namespace Ninject | |
{ |