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
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" :[{ |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Machine.Specifications; | |
using NUnit.Framework.SyntaxHelpers; | |
namespace StringManipulationTests | |
{ |
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
#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()) |
NewerOlder