Skip to content

Instantly share code, notes, and snippets.

when
[
"I add two numbers" : [{
ItShould : "sum them",
Means : function () { this.result.shouldEqual(this.num1 + this.num2);},{
ItShould : "sum them",
Means : function () { this.result.shouldEqual(this.num1 + this.num2);}],
"I make unf" :[{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Machine.Specifications;
using NUnit.Framework.SyntaxHelpers;
namespace StringManipulationTests
{
@jcbozonier
jcbozonier / gist:39153
Created December 22, 2008 22:20 — forked from anonymous/gist:39145
Chad's F#'d
#light
open System
let startTimer minutes checkinterval =
let endtime = DateTime.Now.AddMinutes(minutes) in
let rec interval endtime checkinterval =
if endtime <= DateTime.Now then
System.Console.WriteLine("Timer done")
else
System.Console.WriteLine("checked at " + DateTime.Now.ToShortTimeString())