public void Poping() { var vial = new Vial(new Color[] { Color.Blue, Color.Yellow, Color.Green }); var color = vial.Pop(); color.ShouldBe(Color.Green); vial.Colors.ToArray().ShouldBe(new Color[] { Color.Blue, Color.Yellow }); }
public void PopingFromEmptyThrowsException() { var vial = new Vial(); var exceptionThrown = false; try { vial.Pop(); } catch { exceptionThrown = true; } exceptionThrown.ShouldBeTrue(); }