Created
November 11, 2010 08:53
-
-
Save DerAlbertCom/672216 to your computer and use it in GitHub Desktop.
Simple Test
This file contains 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 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 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