Skip to content

Instantly share code, notes, and snippets.

@forki
Forked from DerAlbertCom/Calendar.cs
Created November 11, 2010 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forki/672221 to your computer and use it in GitHub Desktop.
Save forki/672221 to your computer and use it in GitHub Desktop.
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 october = new Calendar()
let setting_starttime_to time (calendar:Calendar) =
printMethod time
calendar.SetTime(time)
[<Scenario>]
let When_creating_a_calendar() =
As october
|> When setting_starttime_to (new DateTime(2010,10,8))
|> october.Year should equal 2010
|> Verify
@forki
Copy link
Author

forki commented Nov 11, 2010

let setting_starttime_to time (calendar:Calendar) =
printMethod time
calendar.SetTime(time)
calendar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment