-
-
Save forki/672221 to your computer and use it in GitHub Desktop.
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; | |
namespace Aperea.iCalendar | |
{ | |
public class Calendar | |
{ | |
public void SetTime(DateTime dateTime) | |
{ | |
} | |
public int Year { get; set; } | |
} | |
} |
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
let setting_starttime_to time (calendar:Calendar) =
printMethod time
calendar.SetTime(time)
calendar