Пример #1
0
        public void ShouldRaiseUnmatchingScenarioDeclarationExceptionIfNoScenarioWithDeclaredNameIsFoundInFeature()
        {
            // prepare
            var testContext = new Mock<TestContext>();
            testContext.SetupGet(x => x.TestName).Returns("TablaturaTranscricaoTests_DeveTranscreverComTablaturaValida");

            var testObject = new TablaturaTranscricao_CenarioNaoBate_Tests();
            testObject.TestContext = testContext.Object;

            // do
            var checker = new ScenarioChecker(testObject);

            // check
            checker.EnsureConsistency();
        }
Пример #2
0
        public void ShouldComplainIfFeatureFileScenarioHashChecksDifferentToTheStepsClassScenarioHash()
        {
            // prepare
            var testContext = new Mock<TestContext>();
            testContext.SetupGet(x => x.TestName).Returns("TablaturaTranscricao_StatementsQueNaoBatem_DeveTranscreverComTablaturaValida");

            var testObject = new TablaturaTranscricao_StatementsQueNaoBatem_Tests();
            testObject.TestContext = testContext.Object;

            // do
            var checker = new ScenarioChecker(testObject);

            // check
            checker.EnsureConsistency();
        }