public void Then_gillian_should_split_the_number() { var fake = new Fake(); var game = new Game(fake.Split); game.Go(4); Assert.IsTrue(fake.WasCalled); }
public void Then_returns_the_product_of_the_split_returned_by_gillian() { var fake = new Fake(new SplitPair { X=-3, Y=-2}); var game = new Game(fake.Split); Assert.That(game.Go(0), Is.EqualTo(6)); }
public void Then_gillian_should_split_4() { var fake = new Fake(); var game = new Game(fake.Split); game.Go(4); Assert.That(fake.CalledNumber, Is.EqualTo(4)); }