This file contains hidden or 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.Net.FtpClient; | |
using NUnit.Framework; | |
namespace System.Net.FtpClient.Tests | |
{ | |
public class FtpClientTests | |
{ | |
[TestFixture] | |
public class when_constructing |
This file contains hidden or 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
// ReSharper disable CheckNamespace | |
namespace System.Configuration | |
// ReSharper restore CheckNamespace | |
{ | |
public static class ConnectionStringSettingsCollectionExtensions | |
{ | |
// Connection strings by default just return null. We want something | |
// a bit more snappy. | |
public static string GetOrThrow(this ConnectionStringSettingsCollection connectionStrings, string name) | |
{ |
This file contains hidden or 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
Find / replace | |
Contract.Requires\<ArgumentNullException\>\(!String.IsNullOr(Empty|WhiteSpace)\({:i}\)\); | |
if (String.IsNullOrWhiteSpace(\1)) throw new ArgumentException("\1 was null or empty.", "\1"); | |
Contract\.Requires\<ArgumentNullException\>\({:i} \!\= null, .+\)\; | |
if (\1 == null) throw new ArgumentNullException("\1"); |
This file contains hidden or 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.Linq; | |
using System.Reflection; | |
using OpenRasta.Configuration; | |
using OpenRasta.DI; | |
// ReSharper disable CheckNamespace | |
namespace OpenRasta.Hosting.InMemory | |
// ReSharper restore CheckNamespace | |
{ |
NewerOlder