public void ShouldReturnAXMasTree(String patern, int size) { XMasTree tree = new XMasTree(size); tree.Draw(); String returnPatern = tree.ToString(); Assert.That(returnPatern, Is.EqualTo(patern)); }
public void GivenIHaveEntered3IntoXmasTreeSoftware(int treeSize) { try { XMasTree tree = new XMasTree(treeSize); ScenarioContext.Current.Add("XMasTree", tree); } catch (ArgumentOutOfRangeException e) { ScenarioContext.Current.Add("Exception", e); } }
public void ShouldThrowAnExceptionWhenSizeUnder3() { XMasTree tree = new XMasTree(2); }