Наследование: AOUT.CH3.LogAn.LogAnalyzerUsingFactoryMethod
        public void overrideTestWithStub()
        {
            Stub3ExtensionManager stub = new Stub3ExtensionManager();
            stub.ShouldBeValid = false;

            TestableLogAnalyzer logan = new TestableLogAnalyzer();
            logan.Manager=stub;
            bool result = logan.IsValidLogFileName("file.ext");
            Assert.IsFalse(result,"File name should be too short to be considered valid");
        }
        public void overrideTestWithStub()
        {
            Stub3ExtensionManager stub = new Stub3ExtensionManager();

            stub.ShouldBeValid = false;

            TestableLogAnalyzer logan = new TestableLogAnalyzer();

            logan.Manager = stub;
            bool result = logan.IsValidLogFileName("file.ext");

            Assert.IsFalse(result, "File name should be too short to be considered valid");
        }