public void Constructor_GivenTypeWithTestStepAttribute_ShouldSetStepNumber() { //---------------Set up test pack------------------- var classWithTestStepAnnotation = new MyClassWithTestStepAttribute(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var goldenImplementation = new GoldenImplementation(classWithTestStepAnnotation.GetType()); //---------------Test Result ----------------------- Assert.AreEqual(9, goldenImplementation.StepNumber); }
public void Constructor_GivenTypeWithAttributes_ShouldBeIncludedInKataAnnotations() { //---------------Set up test pack------------------- var classWithAttribute = new MyClassWithTestStepAttribute(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var goldenImplementation = new GoldenImplementation(classWithAttribute.GetType()); //---------------Test Result ----------------------- var kataAnnotations = goldenImplementation.KataAnnotations; Assert.AreEqual(3, kataAnnotations.Count); }