AOUT.CH3.LogAn.Tests.LogAnalyzerUsingFactoryMethodTests.overrideTestWithStub C# (CSharp) Метод

overrideTestWithStub() приватный Метод

private overrideTestWithStub ( ) : void
Результат void
        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");
        }
LogAnalyzerUsingFactoryMethodTests