public void Can_Resolve_sample_lage() { var sampleIn = @" 1 -+-++-+-++------+++-++----++++---+++-+-+---++++--+-+-+-+-+-------+------++++-+-+--+--++-++--+--+++--------++++++-+++++++-++----+---+---++---+++++-+---+--++----+-+++++-+---+--+-++++-++---++-++-+-++--++-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+-++-+-++------+++-++----++++---+++-+-+---++++--+-+-+-+-+-------+------++++-+-+--+--++-++--+--+++--------++++++-+++++++-++----+---+---++---+++++-+---+--++----+-+++++-+---+--+-++++-++---++-++-+-++--++-++ 779" .Trim(); var sampleOut = @" Case #1: IMPOSSIBLE".Trim(); var flipper = new OversizedPancakeFlipper(); var result = flipper.Resolve(sampleIn); result.Should().Be(sampleOut); }
public void Can_Resolve_sample() { var sampleIn = @" 3 ---+-++- 3 +++++ 4 -+-+- 4".Trim(); var sampleOut = @" Case #1: 3 Case #2: 0 Case #3: IMPOSSIBLE".Trim(); var flipper = new OversizedPancakeFlipper(); var result = flipper.Resolve(sampleIn); result.Should().Be(sampleOut); }