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.Web.Mvc; | |
namespace website.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
return View(); | |
} |
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.Web; | |
using System.Web.Mvc; | |
using MvcIntegrationTestFramework.Hosting; | |
using NUnit.Framework; | |
using website.Properties; | |
namespace website.tests | |
{ | |
[TestFixture] | |
public class HomeControllerIndexTests |
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.Web; | |
using System.Web.Mvc; | |
using MvcIntegrationTestFramework.Hosting; | |
using NUnit.Framework; | |
using website.Properties; | |
namespace website.tests | |
{ | |
[TestFixture] | |
public class HomeControllerIndexTests |
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
$file, [string]$arguments = $args; | |
if([System.IO.File]::Exists("$(get-location)\$file")) | |
{ | |
$file = "$(Get-Location)\$file"; | |
} | |
$psi = new-object System.Diagnostics.ProcessStartInfo $file; | |
$psi.Arguments = $arguments; | |
$psi.Verb = "runas"; | |
[System.Diagnostics.Process]::Start($psi); |
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
require('datejs'); | |
require('sys'); | |
var net = require('net'); | |
var sockets = new Array(); | |
var server = net.createServer(); | |
server.once('connection', function () { | |
setInterval(function(){ |
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
namespace sandbox | |
{ | |
using Specify; | |
using Specify.Assertions; | |
public enum TestEnum | |
{ | |
Zero = 0, | |
One = 1 | |
} |
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; | |
namespace mtSpec | |
{ | |
public class FailingSpec | |
{ | |
Given _context =()=> { }; | |
When _something_bad_happens =()=> { }; | |
Then _kaboom =()=> { 1.ShouldBe(2); }; | |
} | |
} |
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; | |
namespace mtSpec | |
{ | |
public class PassingSpec | |
{ | |
Given _context =()=> { _a = 1; }; | |
When _something_happens =()=> { _b = 1; }; | |
Then _specifications_are_met =()=> { _a.ShouldBe(_b);}; | |
static int _a; |
NewerOlder