public void ShouldReturnAXMasTree(String patern, int size)
        {
            XMasTree tree = new XMasTree(size);
            tree.Draw();
            String returnPatern = tree.ToString();

            Assert.That(returnPatern, Is.EqualTo(patern));
        }
Ejemplo n.º 2
0
 public void GivenIHaveEntered3IntoXmasTreeSoftware(int treeSize)
 {
     try
     {
         XMasTree tree = new XMasTree(treeSize);
         ScenarioContext.Current.Add("XMasTree", tree);
     }
     catch (ArgumentOutOfRangeException e)
     {
         ScenarioContext.Current.Add("Exception", e);
     }
 }
Ejemplo n.º 3
0
 public void ShouldThrowAnExceptionWhenSizeUnder3()
 {
     XMasTree tree = new XMasTree(2);
 }