예제 #1
0
        public AppendMethodToTestWriterTest()
        {
            var saveRecordings = new SaveRecordingsToMemory();

            RecordingServices.RecordingSaver = saveRecordings;
            fileSystem = new CodeGenerationFileSystem();
            testWriter = new TestWriter(saveRecordings, fileSystem);
        }
        public VoidMethodTestWriterTest()
        {
            var saveRecordings = new SaveRecordingsToMemory();
            RecordingServices.RecordingSaver = saveRecordings;
            fileSystem = new CodeGenerationFileSystem();
            testWriter = new TestWriter(saveRecordings, fileSystem);

            we_have_generated_a_test_class();
        }
예제 #3
0
        public StaticMethodTestWriterTest()
        {
            var saveRecordings = new SaveRecordingsToMemory();

            RecordingServices.RecordingSaver = saveRecordings;
            fileSystem = new CodeGenerationFileSystem();
            testWriter = new TestWriter(saveRecordings, fileSystem);

            we_have_generated_a_test_class();
        }
        protected TestsWithFlavour()
        {
            Configuration.TestFlavour = GetFlavour();

            var saveRecordings = new SaveRecordingsToMemory();
            RecordingServices.RecordingSaver = saveRecordings;

            fileSystem = new CodeGenerationFileSystem();
            testWriter = new TestWriter(saveRecordings, fileSystem);

            math = new SimpleMath();
            we_have_generated_a_test_class();
        }
예제 #5
0
        protected TestsWithFlavour()
        {
            Configuration.TestFlavour = GetFlavour();

            var saveRecordings = new SaveRecordingsToMemory();

            RecordingServices.RecordingSaver = saveRecordings;

            fileSystem = new CodeGenerationFileSystem();
            testWriter = new TestWriter(saveRecordings, fileSystem);

            math = new SimpleMath();
            we_have_generated_a_test_class();
        }