Skip to content

Instantly share code, notes, and snippets.

@DerAlbertCom
Created November 11, 2010 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save DerAlbertCom/672216 to your computer and use it in GitHub Desktop.
Save DerAlbertCom/672216 to your computer and use it in GitHub Desktop.
Simple Test
using System;
namespace Aperea.iCalendar
{
public class Calendar
{
public void SetTime(DateTime dateTime)
{
}
public int Year { get; set; }
}
}
module CalendarSpec
open System
open Aperea.iCalendar
open NaturalSpec
let setting_starttime_to time (calendar:Calendar) =
printMethod time
calendar.SetTime(time)
calendar
let freshOne = new Calendar()
let Then = Whereas
let Should = It should
[<Scenario>]
let With_a_fresh_calendar() =
Given freshOne
|> When setting_starttime_to (new DateTime(2010,10,8))
|> Then freshOne.Year
|> Should equal 2010
|> Verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment