Skip to content

Instantly share code, notes, and snippets.

View adamralph's full-sized avatar
🤗
Living the dream

Adam Ralph adamralph

🤗
Living the dream
View GitHub Profile
using System;
using System.Linq;
using FluentAssertions;
using Xbehave;
using Xunit;
public class AccountsFeature
{
private Account account;
@adamralph
adamralph / NoBaseClass.cs
Created October 20, 2012 13:02 — forked from bwatts/NoBaseClass.cs
Behaviors with LINQ syntax using a scenario monad
public class IntervalFeature
{
[Scenario]
public void ComparisonUsingLinq()
{
var result =
from left in "Given an interval".Of(Interval.WholeStep)
from right in "And a smaller interval".Of(Interval.HalfStep)
select "When comparing the intervals".Do(left.CompareTo(right));