Skip to content

Instantly share code, notes, and snippets.

View philippdolder's full-sized avatar

Philipp Dolder philippdolder

View GitHub Profile
@philippdolder
philippdolder / Error Log Octopus
Created August 21, 2014 11:14
Error Log Octopus
Deploying Server 4.6.317 to: Server Sanity Testing (Guided Failure: Not Enabled)
[13:05:59]Error from Octopus server (HTTP 403): You do not have permission to perform this action. Please contact your Octopus administrator.
[13:05:59]Exit code: -7
[13:05:59]Octo.exe exit code: -7
@philippdolder
philippdolder / gist:7e2ea55a256e834fe017
Created June 2, 2014 14:50
Possible with R# Search&Replace Pattern?
namespace SearchPattern
{
using NUnit.Framework;
[TestFixture]
public class SearchPatternFakeTest
{
private Worker testee;
[SetUp]
@philippdolder
philippdolder / gist:3497513
Created August 28, 2012 11:57
FluentAssertionsException
System.IO.FileNotFoundException
Could not load file or assembly 'JetBrains.ReSharper.Psi, Version=7.0.58.117, Culture=neutral, PublicKeyToken=1010a0d8d6380325' or one of its dependencies. The system cannot find the file specified.
The stacktrace:
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at FluentAssertions.Formatting.AttributeBasedFormatter.GetExportedTypes(Assembly assembly) in c:\Workspaces\codeplex05\fluentassertions\Main\FluentAssertions.Net35\Formatting\AttributeBasedFormatter.cs: line 125
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
@philippdolder
philippdolder / FluentAssertionsMessages.cs
Created August 28, 2012 07:42
Shortened messages in FluentAssertions
// The verification is as follows:
Execute.Verification
.ForCondition(elementsWithCorrectValue.Any)
.FailWith(string.Concat(Message, " with name {2} and value {3}"), assertions.Subject, elementName, name, elementValue);
// The error message with 1.7.1.1 is:
Expected collection
{<Field Name=\"fieldName\">...</Field>}
to contain a "Field" element with name "fieldName" and value "before\r\nafter"