Skip to content

Instantly share code, notes, and snippets.

View OsirisTerje's full-sized avatar
💭
Working on the NUnit3TestAdapter

Terje Sandstrom OsirisTerje

💭
Working on the NUnit3TestAdapter
View GitHub Profile
@OsirisTerje
OsirisTerje / EnableFusionLog.reg
Last active December 8, 2017 19:33
Enabling fusion logs to c:\fusionlog folder
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"ForceLog"=dword:00000001
"LogFailures"=dword:00000001
"EnableLog"=dword:00000001
"LogPath"="C:\\fusionlog\\"
"LogResourceBinds"=dword:00000000
@OsirisTerje
OsirisTerje / Blank.sln
Created January 18, 2016 22:00
Blank empty solution file for starting a new project
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
If authorized:
HTTP/1.1 404 Not Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/8.5
X-TFS-ProcessId: 4e01732e-1319-41d8-b267-0c7a5950cdcb
X-FRAME-OPTIONS: SAMEORIGIN
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 3600
@OsirisTerje
OsirisTerje / ResourceReader
Created December 8, 2014 16:48
ResourceReader for XML
public class ResourceLoader : ILoader
{
public XDocument LoadXml(string resourcename)
{
var content = ReadResource(resourcename);
return XDocument.Parse(content);
}
private string ReadResource(string resourcename)
{
@OsirisTerje
OsirisTerje / gist:49c23c5b5fd2c2489e76
Created October 30, 2014 18:03
nuget.config skeleton
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<packageSources>
<add key="NuGet official package source" value="http://nuget.org/api/v2/" />
<add key="OurInternal" value="http://ourinternal.nugetserver.utl/nuget" />
</packageSources>
</configuration>
if (sln_open) {
sln_filename + (exec git_branch 5 "git rev-parse --abbrev-ref HEAD" sln_dir ? " git["+git_branch+"]") + " "+sln_dir + (exec git_rem 5 "git remote " sln_dir ? " Rems:["+git_rem+"]")
+" "+(exec git_stat 5 "git status -s" sln_dir ? "Status:["+git_stat+"]")
} else {
"VS" + vs_version
}
@OsirisTerje
OsirisTerje / gitconfig-merge-section
Created May 10, 2014 23:21
Setting up merge on VS2013 for Git, add to .gitconfig found at c:\users\(yourusername)
[diff]
tool = vsdiffmerge
[difftool]
prompt = true
[difftool "vsdiffmerge"]
cmd = \"vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t
keepbackup = false
trustexistcode = true
[merge]
tool = vsdiffmerge
@OsirisTerje
OsirisTerje / gist:8906338
Created February 9, 2014 21:40
General Runconfiguration part of a runsettings file.
<RunConfiguration>
<!-- Path relative to solution directory -->
<ResultsDirectory>.\TestResults</ResultsDirectory>
<!-- [x86] | x64
- You can also change it from menu Test, Test Settings, Default Processor Architecture -->
<TargetPlatform>x86</TargetPlatform>
<!-- Framework35 | [Framework40] | Framework45 -->
<TargetFrameworkVersion>Framework40</TargetFrameworkVersion>
@OsirisTerje
OsirisTerje / NUnitMSTestConversion.cs
Last active December 28, 2015 03:49
NUnit MS Test Conversion methods. Add this code to keep MSTest code close to unchanged when replacing it with NUnit. If you use the IsInstanceOfType, you should add the following line at the top of your MSTest file: using Assert = NUnit.Framework.AssertMs;
// This code is grabbed off https://gist.github.com/OsirisTerje/7437743
using System;
namespace NUnit.Framework
{
public class TestClassAttribute : TestFixtureAttribute
{ }
public class TestMethodAttribute: TestAttribute