Пример #1
0
        public void FactsRun()
        {
            var testee = new Smoke();

            var result = testee.Run("check");

            result.Should().Be(5);
        }
Пример #2
0
        public void SpecsRun(
            Smoke smoke,
            int result)
        {
            "establish smoke test infrastructure".x(()
                                                    => smoke = new Smoke());

            "when running smoke test".x(()
                                        => result = smoke.Run("check"));

            "if should succeed".x(()
                                  => result.Should().Be(5));
        }
Пример #3
0
        public int RunSmoke(string value)
        {
            var smoke = new Smoke();

            return(smoke.Run(value));
        }