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
------ Test started: Assembly: Machine.UrlStrong.Specs.dll ------ | |
when generating | |
» should look right (FAIL) | |
UrlNode, when creating a UrlNode with parameters | |
» should have a format string with parameters | |
UrlNode, when creating a UrlNode with a dash | |
» should have ClassName with underscore |
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
Get-ChildItem . -Recurse -Filter packages.config | ForEach ($_) {$configPath = $_.FullName;Write-Host;Write-Host "Reading $configPath"; nuget install $configPath -OutputDirectory .\packages} |
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
task :kickstart_iisexpress do | |
# this task is a workaround for the following issue: http://stackoverflow.com/questions/4605750/iis-express-from-command-line | |
path_to_iisExpress = File.join(tools_path, 'IIS Express', 'iisexpress.exe') | |
output = IO.popen(path_to_iisExpress) do |pipe| | |
sleep 3 #seconds | |
Process.kill("KILL", pipe.pid) | |
pipe.close |
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
def svn_version | |
version_range = `./tools/svn/svnversion`.match('(\d+)(?::(\d+))?') rescue [-1] | |
ENV["BUILD_VCS_NUMBER"] || version_range[2] || version_range[1] | |
end |
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
require 'rubygems' | |
require 'rake/clean' | |
require 'albacore' | |
include FileUtils | |
desc 'Publish nuget package' | |
task :default => ["deploy:publish"] | |
namespace :deploy do |
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
public static class HyperLinkTagHelpers | |
{ | |
public static HtmlTag HyperLink( this HtmlHelper htmlHelper, string linkText, IUrl url ) | |
{ | |
return htmlHelper.HyperLink( linkText, url, null ); | |
} | |
public static HtmlTag HyperLink( this HtmlHelper htmlHelper, string linkText, IUrl url, object htmlAttributes ) | |
{ | |
return htmlHelper.HyperLink( linkText, url.ToString(), new RouteValueDictionary( htmlAttributes ) ); |
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
Configure.TypesToScan.Where(t => typeof(INeedToInstallSomething).IsAssignableFrom(t)) | |
.ToList().ForEach(t => config.Configurer.ConfigureComponent(t, DependencyLifecycle.InstancePerCall)); | |
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
Configure.TypesToScan.Where(t => typeof(INeedToInstallSomething).IsAssignableFrom(t) && t.IsInterface == false) | |
.ToList().ForEach(t => config.Configurer.ConfigureComponent(t, DependencyLifecycle.InstancePerCall)); |
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
/// <summary> | |
/// Extracts the interesting parts of a <see cref="KeyEventArgs"/> so that we can mock it outside of the WPF runtime in a test. | |
/// </summary> | |
public interface IKeyEventArgs | |
{ | |
bool Handled { get; set; } | |
object OriginalSource { get; } | |
Key DeadCharProcessedKey { get; } | |
Key ImeProcessedKey { get; } | |
bool IsDown { get; } |
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
public interface ITextCompositionEventArgs | |
{ | |
string Text { get; } | |
bool Handled { get; set; } | |
} |