Ejemplo n.º 1
0
        public void ShouldNotAddDependencyIfNotInSolution()
        {
            examiner.Stub(e => e.ExamineSource(Arg <string> .Is.Anything)).Return(new List <TypeInfo> {
                "Foo"
            });
            solutionFile.Stub(s => s.FindClassByType(Arg <TypeInfo> .Is.Anything)).Return(new Class("stub"));

            var buildFiles = BuildMonkey
                             .Using(examiner, solutionFile, sourceCodeRepo)
                             .WhatFilesAreRequiredToBuild(string.Empty);

            Assert.That(buildFiles.HasAClassCalled("Foo.cs"), Is.False);
        }