コード例 #1
0
        public void Constructor_GivenTypeWithNoShouldFailEdgeCaseTestAttribute_ShouldNotBeIncludedInKataAnnotations()
        {
            //---------------Set up test pack-------------------
            var classWithNoAttribute = new MyClassWithNoAttribute();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var goldenImplementation = new GoldenImplementation(classWithNoAttribute.GetType());

            //---------------Test Result -----------------------
            Assert.AreEqual(0, goldenImplementation.KataAnnotations.Count);
        }
コード例 #2
0
        public void Constructor_GivenTypeWithNoTestStepAttribute_ShouldNotSetStepNumber()
        {
            //---------------Set up test pack-------------------
            var classWithNoTestStepAnnotation = new MyClassWithNoAttribute();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var goldenImplementation = new GoldenImplementation(classWithNoTestStepAnnotation.GetType());

            //---------------Test Result -----------------------
            Assert.AreEqual(0, goldenImplementation.StepNumber);
        }